diff options
author | Christopher Faylor <me@cgf.cx> | 2004-03-14 09:34:05 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-03-14 09:34:05 +0300 |
commit | f8a8e7a1f6364f620685406cf9f3a9770b1d5789 (patch) | |
tree | 5405c4afeb2e3706083ed6e2fccf951e63868a9f /winsup/cygwin/cygtls.cc | |
parent | 8308950ca5611565b842800e285ad4c8378344f5 (diff) |
* cygtls.cc (_cygtls::remove): Call remove_wq to ensure that wait stuff is
removed from proc_subproc linked list.
* cygtls.h (_cygtls::remove_wq): Declare.
* sigproc.cc (_cygtls::remove_wq): Define.
(proc_subproc): Label event handle appropriately.
* spawn.cc (spawn_guts): Return -1 when wait() fails for spawn types that
require waiting.
Diffstat (limited to 'winsup/cygwin/cygtls.cc')
-rw-r--r-- | winsup/cygwin/cygtls.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc index 36aaa86d6..f9770bbb0 100644 --- a/winsup/cygwin/cygtls.cc +++ b/winsup/cygwin/cygtls.cc @@ -159,6 +159,7 @@ _cygtls::remove (DWORD wait) if (i < --nthreads) cygheap->threadlist[i] = cygheap->threadlist[nthreads]; debug_printf ("removed %p element %d", this, i); + remove_wq (); break; } } |