diff options
-rw-r--r-- | reap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reap.c b/reap.c index 90b2162..03386f1 100644 --- a/reap.c +++ b/reap.c @@ -108,7 +108,8 @@ main(int argc, char *argv[]) { pid_t pid, desc; int pipefd[2]; - pipe2(pipefd, O_CLOEXEC); + if (pipe2(pipefd, O_CLOEXEC) < 0) + F("pipe2"); pid = fork(); if (pid == 0) { // in child |