diff options
Diffstat (limited to 'man2/pipe.2')
| -rw-r--r-- | man2/pipe.2 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/man2/pipe.2 b/man2/pipe.2 index 30e5f8d310..f67d8bae04 100644 --- a/man2/pipe.2 +++ b/man2/pipe.2 @@ -93,10 +93,16 @@ main(int argc, char *argv[]) assert(argc == 2); - if (pipe(pfd) == -1) { perror("pipe"); exit(EXIT_FAILURE); } + if (pipe(pfd) == \-1) { + perror("pipe"); + exit(EXIT_FAILURE); + } cpid = fork(); - if (cpid == -1) { perror("fork"); exit(EXIT_FAILURE); } + if (cpid == \-1) { + perror("fork"); + exit(EXIT_FAILURE); + } if (cpid == 0) { /* Child reads from pipe */ close(pfd[1]); /* Close unused write end */ |
