summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-31 21:27:06 +0000
committerChristopher Faylor <me@cgf.cx>2003-03-31 21:27:06 +0000
commit333879e77b16f6cf2658c5c85a6da1b50ae65a9f (patch)
treef72afe06483f1453d36f29b3dc90f73566be859a /winsup/cygwin/exceptions.cc
parentce5435df0b59c9b4eda96bad4fd6fc90c5a12c4b (diff)
downloadcygnal-333879e77b16f6cf2658c5c85a6da1b50ae65a9f.tar.gz
cygnal-333879e77b16f6cf2658c5c85a6da1b50ae65a9f.tar.bz2
cygnal-333879e77b16f6cf2658c5c85a6da1b50ae65a9f.zip
* exceptions.cc (setup_handler): Make sure winapi lock is released when exiting
loop.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 5acbe558d..742aa68b0 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -836,6 +836,7 @@ setup_handler (int sig, void *handler, struct sigaction& siga)
/* Just set pending if thread is already suspended */
if (res)
{
+ mainthread.release_winapi_lock ();
(void) ResumeThread (hth);
break;
}