* spawn.cc (spawn_guts): Restore dependency on signal_arrived. It's needed to

wake up the WaitForSingleObject.
This commit is contained in:
Christopher Faylor 2000-03-15 19:29:15 +00:00
parent 1b534ee1be
commit 181438ea70
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Mar 15 14:25:38 2000 Christopher Faylor <cgf@cygnus.com>
* spawn.cc (spawn_guts): Restore dependency on signal_arrived. It's
needed to wake up the WaitForSingleObject.
Tue Mar 14 23:41:16 2000 Christopher Faylor <cgf@cygnus.com>
Pipe changes throughout suggested by Eric Fifer <EFifer@sanwaint.com>

View File

@ -635,8 +635,8 @@ skip_arg_parsing:
{
BOOL exited;
HANDLE waitbuf[2] = {pi.hProcess, spr};
int nwait = 2;
HANDLE waitbuf[3] = {pi.hProcess, signal_arrived, spr};
int nwait = 3;
SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_HIGHEST);
res = 0;
@ -675,6 +675,10 @@ skip_arg_parsing:
}
break;
case WAIT_OBJECT_0 + 1:
sigproc_printf ("signal arrived");
ResetEvent (signal_arrived);
continue;
case WAIT_OBJECT_0 + 2:
res = EXIT_REPARENTING;
MALLOC_CHECK;
ForceCloseHandle (spr);