aboutsummaryrefslogtreecommitdiff
path: root/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/rpc_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c
index 0b30d6f..a5249e3 100644
--- a/sunrpc/rpc_main.c
+++ b/sunrpc/rpc_main.c
@@ -349,7 +349,11 @@ open_input (const char *infile, const char *define)
int pd[2];
infilename = (infile == NULL) ? "<stdin>" : infile;
- pipe (pd);
+ if (pipe (pd) != 0)
+ {
+ perror ("pipe");
+ exit (1);
+ }
switch (fork ())
{
case 0: