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:
Diffstat (limited to 'winsup/cygwin/debug.cc')
-rw-r--r--winsup/cygwin/debug.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/debug.cc b/winsup/cygwin/debug.cc
index 418f35510..3513a6734 100644
--- a/winsup/cygwin/debug.cc
+++ b/winsup/cygwin/debug.cc
@@ -37,7 +37,8 @@ class lock_debug
public:
lock_debug () : acquired (0)
{
- if (locker)
+ extern int exit_state;
+ if (locker && !exit_state)
acquired = !!locker->acquire (INFINITE);
}
void unlock ()