diff options
author | Christopher Faylor <me@cgf.cx> | 2000-03-15 19:29:15 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-03-15 19:29:15 +0000 |
commit | 181438ea702c4b8488365a5fdf3fea52bca7b4a6 (patch) | |
tree | 9192ea3a60dc72185f54dd552e1da0ea364e6850 /winsup/cygwin/spawn.cc | |
parent | 1b534ee1beb399889ef5e21b2aefda81d6fb4d2e (diff) | |
download | cygnal-181438ea702c4b8488365a5fdf3fea52bca7b4a6.tar.gz cygnal-181438ea702c4b8488365a5fdf3fea52bca7b4a6.tar.bz2 cygnal-181438ea702c4b8488365a5fdf3fea52bca7b4a6.zip |
* spawn.cc (spawn_guts): Restore dependency on signal_arrived. It's needed to
wake up the WaitForSingleObject.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index e4f41b26c..e1a191c7b 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -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); |