* Copyright (c) 1983 Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Edward Wang at The University of California, Berkeley.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)wwchild.c 3.13 (Berkeley) %G%";
while ((pid
= wait3(&w
, WNOHANG
|WUNTRACED
, (struct rusage
*)0)) > 0) {
for (wp
= wwindex
; wp
< &wwindex
[NWW
]; wp
++) {
if (*wp
&& (*wp
)->ww_state
== WWS_HASPROC
&& (*wp
)->ww_pid
== pid
) {
(*wp
)->ww_state
= WWS_DEAD
;
/* jump out of wwiomux when somebody dies */