about summary refs log tree commit diff
path: root/nq.c
diff options
context:
space:
mode:
Diffstat (limited to 'nq.c')
-rw-r--r--nq.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nq.c b/nq.c
index 21a0a5b..86177f3 100644
--- a/nq.c
+++ b/nq.c
@@ -122,7 +122,10 @@ usage:
 		goto wait;
 	}
 
-	pipe(pipefd);
+	if (pipe(pipefd) < 0) {
+		perror("pipe");
+		exit(111);
+	};
 
 	/* first fork, parent exits to run in background.  */
 	child = fork();