static char sccsid
[] = "@(#)wwchild.c 3.5 %G%";
* Copyright (c) 1983 Regents of the University of California,
* All rights reserved. Redistribution permitted subject to
* the terms of the Berkeley Software License Agreement.
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
;