From b87bfedf65c289bf0ee5338c9e10492b70b1e8e0 Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Mon, 7 Jul 1997 00:00:01 +0100 Subject: beta: rc-1.5b2 --- wait.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'wait.c') diff --git a/wait.c b/wait.c index 3756985..171d97e 100644 --- a/wait.c +++ b/wait.c @@ -1,23 +1,27 @@ +#include "rc.h" + #include #include -#include "rc.h" +#include + #include "jbwrap.h" bool forked = FALSE; -static int rc_wait(int *); +static pid_t rc_wait(int *); typedef struct Pid Pid; static struct Pid { - int pid, stat; + pid_t pid; + int stat; bool alive; Pid *n; } *plist = NULL; -extern int rc_fork() { +extern pid_t rc_fork() { Pid *new; - int pid = fork(); + pid_t pid = fork(); switch (pid) { case -1: uerror("fork"); @@ -37,7 +41,7 @@ extern int rc_fork() { } } -extern int rc_wait4(int pid, int *stat, bool nointr) { +extern pid_t rc_wait4(pid_t pid, int *stat, bool nointr) { Pid *r, *prev; int ret; /* first look for a child which may already have exited */ @@ -109,7 +113,7 @@ extern void waitforall() { may want to resume the wait() without delivering any signals. */ -static int rc_wait(int *stat) { +static pid_t rc_wait(int *stat) { int r; interrupt_happened = FALSE; if (!setjmp(slowbuf.j)) { -- cgit v1.2.3