]> diplodocus.org Git - nmh/blobdiff - sbr/pidwait.c
seq_nameok.c: Move interface to own file.
[nmh] / sbr / pidwait.c
index 5ea87c54cd5a8bf71017b3b4ff4360a336b8939e..8ccc6891eff97c824a71e5e93b87e474363910a1 100644 (file)
@@ -1,17 +1,12 @@
-
-/*
- * 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
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/signals.h>
-#include <errno.h>
-#include <signal.h>
-#include <sys/wait.h>
+#include "h/mh.h"
+#include "h/signals.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;
 }