diff options
author | Christopher Faylor <me@cgf.cx> | 2000-11-04 19:25:55 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-11-04 19:25:55 +0000 |
commit | 1ae469adf4b876830f8a96391e6ae7085c62118c (patch) | |
tree | 2fc12c7bbbe2884046ab08f1138c2c5aa3b00e82 /winsup/cygwin/sigproc.cc | |
parent | 29578e3eeb8da816e57d628c8f4607de0003968f (diff) | |
download | cygnal-1ae469adf4b876830f8a96391e6ae7085c62118c.tar.gz cygnal-1ae469adf4b876830f8a96391e6ae7085c62118c.tar.bz2 cygnal-1ae469adf4b876830f8a96391e6ae7085c62118c.zip |
* sigproc.cc (wait_subproc): Still more debugging cleanup.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 659a2c86d..27a07d580 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -1246,14 +1246,14 @@ wait_subproc (VOID *) system_printf ("wait failed. nchildren %d, wait %d, %E", nchildren, proc_loop_wait); - for (int i = 0; i < nchildren + 1; i++) + for (int i = 0; i <= nchildren; i++) if ((rc = WaitForSingleObject (events[i], 0)) == WAIT_OBJECT_0 || rc == WAIT_TIMEOUT) continue; else { - system_printf ("nchildren %d, event[%d] %p, pchildren[%d] %p, %E", - nchildren, i, events[0], i, (_pinfo *) pchildren[i]); + system_printf ("nchildren %d, event[%d] %p, pchildren[%d] %p, events[0] %p, %E", + nchildren, i, events[i], i, (_pinfo *) pchildren[i], events[0]); system_printf ("pid %d, dwProcessId %u, progname '%s'", pchildren[i]->pid, pchildren[i]->dwProcessId, pchildren[i]->progname); |