X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/af2971700a5d9fbc9f68c4afca5ba6567e800260..215f8df2be496a67942590ab2aefdad5b182fe25:/uip/popsbr.c diff --git a/uip/popsbr.c b/uip/popsbr.c index 479fdb1f..8334dee6 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -487,8 +487,12 @@ pop_init (char *host, char *port, char *user, char *pass, char *proxy, int inpipe[2]; /* for reading from the server */ int outpipe[2]; /* for sending to the server */ - pipe(inpipe); - pipe(outpipe); + if (pipe(inpipe) < 0) { + adios ("inpipe", "pipe"); + } + if (pipe(outpipe) < 0) { + adios ("outpipe", "pipe"); + } pid=fork(); if (pid==0) {