* sigproc.cc (child_info::sync): Use correct name when closing to prevent

warnings when DEBUGGING.
* spawn.cc (spawn_guts): Set myself.hProcess to pi.hProcess since this may have
been zeroed by the previous sync.
This commit is contained in:
Christopher Faylor
2005-10-18 15:13:13 +00:00
parent 4116609aca
commit a93b4154f1
3 changed files with 9 additions and 1 deletions

View File

@ -848,7 +848,7 @@ child_info::sync (pid_t pid, HANDLE& hProcess, DWORD howlong)
{
if (type != _PROC_FORK && x == nsubproc_ready)
{
ForceCloseHandle (hProcess);
ForceCloseHandle1 (hProcess, childhProcess);
hProcess = NULL;
}
sigproc_printf ("process %d synchronized, WFMO returned %d", pid, x);