aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/cygtls.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/cygtls.cc')
-rw-r--r--winsup/cygwin/cygtls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc
index 568c5af..e8e846e 100644
--- a/winsup/cygwin/cygtls.cc
+++ b/winsup/cygwin/cygtls.cc
@@ -147,7 +147,7 @@ void
_cygtls::remove (DWORD wait)
{
debug_printf ("wait %p", wait);
- if (!locals.exitsock)
+ if (!locals.exitsock || exit_state >= ES_FINAL)
return;
if (wait)
{