version 1.3, 1997/02/25 00:04:41 |
version 1.4, 1998/12/21 05:12:06 |
|
|
extern errno; |
extern errno; |
int olderrno; |
int olderrno; |
register struct ww **wp; |
register struct ww **wp; |
union wait w; |
int w; |
int pid; |
int pid; |
char collected = 0; |
char collected = 0; |
|
|
olderrno = errno; |
olderrno = errno; |
while ((pid = |
while ((pid = |
wait3((int *)&w, WNOHANG|WUNTRACED, (struct rusage *)0)) > 0) { |
wait3(&w, WNOHANG|WUNTRACED, (struct rusage *)0)) > 0) { |
for (wp = wwindex; wp < &wwindex[NWW]; wp++) { |
for (wp = wwindex; wp < &wwindex[NWW]; wp++) { |
if (*wp && (*wp)->ww_state == WWS_HASPROC |
if (*wp && (*wp)->ww_state == WWS_HASPROC |
&& (*wp)->ww_pid == pid) { |
&& (*wp)->ww_pid == pid) { |