]> diplodocus.org Git - nmh/blobdiff - uip/popsbr.c
Fix typo in man page
[nmh] / uip / popsbr.c
index 479fdb1f6688a4425e1634513cffcf4beea16a66..8334dee6f92e5cadbaf3c58aa6bca04540cf0f00 100644 (file)
@@ -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 */
 
        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) {
 
        pid=fork();
        if (pid==0) {