diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-13 19:01:57 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-13 19:01:57 +0300 |
commit | 2c8fd4069587c530504cbc66e63371bed8ccb8d6 (patch) | |
tree | 104f7fb056c2c7ef29128a1e2b8abdaa27f0955b /winsup/cygwin/sigproc.cc | |
parent | 1f3a4b849693e397d052f276ac11e1633900175d (diff) |
* cygtls.cc (_cygtls::remove): Don't bother if we're exiting.
* sigproc.cc (_cygtls::remove_wq): Ditto.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 2c3652c6f..d719b3334 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -355,7 +355,8 @@ out1: void _cygtls::remove_wq (DWORD wait) { - if (sync_proc_subproc && sync_proc_subproc.acquire (wait)) + if (exit_state < ES_FINAL && sync_proc_subproc + && sync_proc_subproc.acquire (wait)) { for (waitq *w = &waitq_head; w->next != NULL; w = w->next) if (w->next == &wq) |