X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/afee8ed17a56617618fb7f963b111d7cf0fb56e7..4868817acfea2735b7c619018b6514381df04a36:/uip/rcvtty.c diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 92334c18..6282d522 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #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 */ }