From 37646aff7c9cbc9bf0eff409842791524da047b3 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 13 Aug 2019 14:18:57 +0200 Subject: check pipe2 --- reap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1