* 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

@ -1,3 +1,10 @@
2005-10-18 Christopher Faylor <cgf@timesys.com>
* 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.
2005-10-18 Christopher Faylor <cgf@timesys.com> 2005-10-18 Christopher Faylor <cgf@timesys.com>
* sigproc.cc (child_info::sync): Fix typo which caused hProcess to * sigproc.cc (child_info::sync): Fix typo which caused hProcess to

View File

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

View File

@ -814,6 +814,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
switch (mode) switch (mode)
{ {
case _P_OVERLAY: case _P_OVERLAY:
myself.hProcess = pi.hProcess;
if (!synced && !myself->wr_proc_pipe) if (!synced && !myself->wr_proc_pipe)
{ {
extern bool is_toplevel_proc; extern bool is_toplevel_proc;