X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/55f65ae2d3baf60396d3359db952460939de03ca..2ad4aac7f0cb1c4981dfbe823bdebff8d7500515:/sbr/pidwait.c?ds=sidebyside diff --git a/sbr/pidwait.c b/sbr/pidwait.c index a6dc27f9..8ccc6891 100644 --- a/sbr/pidwait.c +++ b/sbr/pidwait.c @@ -1,14 +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 -#include +#include "h/mh.h" +#include "h/signals.h" int pidwait (pid_t id, int sigsok) @@ -33,5 +31,5 @@ pidwait (pid_t id, int sigsok) SIGNAL (SIGQUIT, qstat); } - return (pid == -1 ? -1 : status); + return pid == -1 ? -1 : status; }