Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-03-14 09:34:05 +0300
committerChristopher Faylor <me@cgf.cx>2004-03-14 09:34:05 +0300
commitf8a8e7a1f6364f620685406cf9f3a9770b1d5789 (patch)
tree5405c4afeb2e3706083ed6e2fccf951e63868a9f /winsup/cygwin/cygtls.cc
parent8308950ca5611565b842800e285ad4c8378344f5 (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.cc1
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;
}
}