=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/window/Attic/wwchild.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/window/Attic/wwchild.c 1997/02/25 00:04:41 1.3 --- src/usr.bin/window/Attic/wwchild.c 1998/12/21 05:12:06 1.4 *************** *** 1,4 **** ! /* $OpenBSD: wwchild.c,v 1.3 1997/02/25 00:04:41 downsj Exp $ */ /* $NetBSD: wwchild.c,v 1.3 1995/09/28 10:35:13 tls Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: wwchild.c,v 1.4 1998/12/21 05:12:06 deraadt Exp $ */ /* $NetBSD: wwchild.c,v 1.3 1995/09/28 10:35:13 tls Exp $ */ /* *************** *** 41,47 **** #if 0 static char sccsid[] = "@(#)wwchild.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: wwchild.c,v 1.3 1997/02/25 00:04:41 downsj Exp $"; #endif #endif /* not lint */ --- 41,47 ---- #if 0 static char sccsid[] = "@(#)wwchild.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: wwchild.c,v 1.4 1998/12/21 05:12:06 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 55,67 **** extern errno; int olderrno; register struct ww **wp; ! union wait w; int pid; char collected = 0; olderrno = errno; while ((pid = ! wait3((int *)&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) { --- 55,67 ---- extern errno; int olderrno; register struct ww **wp; ! int w; int pid; char collected = 0; olderrno = errno; 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) {