Return to popen.c CVS log | Up to [local] / src / usr.bin / mail |
version 1.10, 1997/07/14 16:09:07 | version 1.11, 1997/08/04 19:25:50 | ||
---|---|---|---|
|
|
||
int pid; | int pid; | ||
union wait status; | union wait status; | ||
register struct child *cp; | register struct child *cp; | ||
int save_errno = errno; | |||
while ((pid = | while ((pid = | ||
wait3((int *)&status, WNOHANG, (struct rusage *)0)) > 0) { | wait3((int *)&status, WNOHANG, (struct rusage *)0)) > 0) { | ||
|
|
||
cp->status = status; | cp->status = status; | ||
} | } | ||
} | } | ||
errno = save_errno; | |||
} | } | ||
union wait wait_status; | union wait wait_status; |