From a93b4154f1212b54d0658557e914003ea5b06b0e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 18 Oct 2005 15:13:13 +0000 Subject: * 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. --- winsup/cygwin/sigproc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/sigproc.cc') diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index fc8ea9147..86ac20c8b 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -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); -- cgit v1.2.3