From 95101076e5bea1252d941dedf275673aff510b88 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 5 Nov 2000 18:47:28 +0000 Subject: [PATCH] * pinfo (wait_subproc): Son of neverending debug tweaking. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/sigproc.cc | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 35df963eb..ea147443b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Sun Nov 5 13:46:23 2000 Christopher Faylor + + * pinfo (wait_subproc): Son of neverending debug tweaking. + Sun Nov 5 11:45:15 2000 Christopher Faylor * pinfo (wait_subproc): Neverending debug tweaking. diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 5e3b21b7e..24fe1d0e2 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -1249,13 +1249,16 @@ wait_subproc (VOID *) if ((rc = WaitForSingleObject (events[i], 0)) == WAIT_OBJECT_0 || rc == WAIT_TIMEOUT) continue; + else if (i == 0) + system_printf ("nchildren %d, event[%d] %p, %E", nchildren, i, events[i]); else { system_printf ("nchildren %d, event[%d] %p, pchildren[%d] %p, events[0] %p, %E", nchildren, i, events[i], i - 1, (_pinfo *) pchildren[i - 1], events[0]); - system_printf ("pid %d, dwProcessId %u, progname '%s'", + system_printf ("pid %d, dwProcessId %u, hProcess %p, progname '%s'", pchildren[i - 1]->pid, pchildren[i - 1]->dwProcessId, - pchildren[i - 1]->progname); + pchildren[i - 1]->hProcess, pchildren[i - 1]->progname); + Sleep (10000); } break; }