* init.cc (dll_entry): Previous code reversion was ill-advised. Revert it.
* sigproc.cc (child_info::sync): Ditto. * pinfo.cc (_pinfo::exit): Don't set myself.procinfo to NULL since it is no longer required.
This commit is contained in:
@@ -798,6 +798,13 @@ child_info::sync (pinfo& vchild, DWORD howlong)
|
||||
case WAIT_OBJECT_0 + 1:
|
||||
if (WaitForSingleObject (subproc_ready, 0) == WAIT_OBJECT_0)
|
||||
sigproc_printf ("should never happen. noticed subproc_ready after process exit");
|
||||
else
|
||||
{
|
||||
DWORD exitcode = 0;
|
||||
(void) GetExitCodeProcess (vchild.hProcess, &exitcode);
|
||||
vchild->exitcode = (exitcode & 0xff) << 8;
|
||||
sigproc_printf ("non-cygwin exit value is %p", exitcode);
|
||||
}
|
||||
res = false;
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user