summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/sigproc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index c59b67ed1..e2a310120 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -1250,7 +1250,7 @@ wait_subproc (VOID *)
closed a handle in the children[] array. So, we try looping a couple
of times to stabilize. FIXME - this is not foolproof. Probably, this
thread should be responsible for closing the children. */
- if (++errloop < 10 && GetLastError () == ERROR_INVALID_HANDLE)
+ if (++errloop < 10)
continue;
system_printf ("wait failed. nchildren %d, wait %d, %E",
@@ -1261,7 +1261,9 @@ wait_subproc (VOID *)
rc == WAIT_TIMEOUT)
continue;
else
- system_printf ("event[%d] %p, %E", i, events[0]);
+ system_printf ("event[%d] %p, pid %d, dwProcessId %u, progname '%s', %E", i,
+ events[0], pchildren[i]->pid, pchildren[i]->dwProcessId,
+ pchildren[i]->progname);
break;
}