diff options
Diffstat (limited to 'sunrpc/rpc_main.c')
-rw-r--r-- | sunrpc/rpc_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c index 0b30d6f505..a5249e3df7 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: |