4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-30 02:50:25 +08:00

* pinfo (wait_subproc): Son of neverending debug tweaking.

This commit is contained in:
Christopher Faylor 2000-11-05 18:47:28 +00:00
parent 914f7bf565
commit 95101076e5
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Sun Nov 5 13:46:23 2000 Christopher Faylor <cgf@cygnus.com>
* pinfo (wait_subproc): Son of neverending debug tweaking.
Sun Nov 5 11:45:15 2000 Christopher Faylor <cgf@cygnus.com>
* pinfo (wait_subproc): Neverending debug tweaking.

View File

@ -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;
}