]> diplodocus.org Git - nmh/blobdiff - sbr/pidwait.c
runpty.c: Move child slave code into new run_command().
[nmh] / sbr / pidwait.c
index 5ea87c54cd5a8bf71017b3b4ff4360a336b8939e..bd6602cb455a72e7f38626e6ca09cc19f2c42d03 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * pidwait.c -- wait for child to exit
+/* pidwait.c -- wait for child to exit
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -9,9 +7,6 @@
 
 #include <h/mh.h>
 #include <h/signals.h>
-#include <errno.h>
-#include <signal.h>
-#include <sys/wait.h>
 
 int
 pidwait (pid_t id, int sigsok)
@@ -36,5 +31,5 @@ pidwait (pid_t id, int sigsok)
        SIGNAL (SIGQUIT, qstat);
     }
 
-    return (pid == -1 ? -1 : status);
+    return pid == -1 ? -1 : status;
 }