mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Correctly test return value of pipe(2)
CID: 1393351
This commit is contained in:
parent
a9063ba1d7
commit
5a43dca273
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ start_pr(char *file1, char *file2)
|
|||
signal(SIGPIPE, SIG_IGN);
|
||||
fflush(stdout);
|
||||
rewind(stdout);
|
||||
pipe(pfd);
|
||||
if (pipe(pfd) == -1)
|
||||
err(2, "pipe");
|
||||
switch ((pid = pdfork(&pr_pd, PD_CLOEXEC))) {
|
||||
case -1:
|
||||
status |= 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue