]> diplodocus.org Git - nmh/blobdiff - uip/rcvtty.c
Added script name to test-mhfixmsg printout.
[nmh] / uip / rcvtty.c
index 92334c18f0b203679f9930528f893e8c3ec9feb2..6282d52233fdf54bd62be8ec153d0ce659cc3214 100644 (file)
@@ -19,7 +19,6 @@
 #include <h/scansbr.h>
 #include <h/tws.h>
 #include <h/mts.h>
-#include <signal.h>
 #include <fcntl.h>
 
 #ifdef HAVE_GETUTXENT
@@ -168,7 +167,6 @@ main (int argc, char **argv)
 #endif /* HAVE_GETUTXENT */
 
     exit (RCV_MOK);
-    return 0;  /* dead code to satisfy the compiler */
 }
 
 
@@ -192,7 +190,7 @@ message_fd (char **vec)
     fd = mkstemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil)));
     unlink (tmpfil);
 
-    if ((child_id = vfork()) == NOTOK) {
+    if ((child_id = fork()) == NOTOK) {
        /* fork error */
        close (fd);
        return header_fd ();
@@ -237,7 +235,6 @@ message_fd (char **vec)
     setpgid ((pid_t) 0, getpid ());    /* put in own process group */
     execvp (vec[0], vec);
     _exit (-1);
-    return 1;  /* dead code to satisfy compiler */
 }