}
static void
-remove_child (FILE *ofile, DWORD id)
+remove_child (DWORD id)
{
child_list *c;
if (id == lastid)
{
child_list *c1 = c->next;
c->next = c1->next;
- DWORD n = 0xdeadbeef;
- GetExitCodeProcess (c1->hproc, &n);
- fprintf (ofile, "process %u exited with status %p\n", id, n);
free (c1);
return;
}
break;
case EXIT_PROCESS_DEBUG_EVENT:
- remove_child (ofile, ev.dwProcessId);
+ remove_child (ev.dwProcessId);
break;
case EXCEPTION_DEBUG_EVENT:
if (ev.u.Exception.ExceptionRecord.ExceptionCode !=