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>2001-09-12 05:56:32 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-12 05:56:32 +0400
commit101f820da27a0aa142df153e35d2890209b49456 (patch)
treea6c86d186b9cee6915569cd6f1d151bf0afe6f57 /winsup/cygwin/exceptions.cc
parente3c25c4a47ad780d0fec814f0feef537733b27d9 (diff)
* sigproc.h (sigframe::unregister): Return true/false whether this frame is
capable of responding to signals. * exceptions.cc (sigframe::call_signal_handler): Don't call signal handler if it is not armed for this thread.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index a06774d09..bf4a4446e 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -1142,8 +1142,8 @@ static int __stdcall call_signal_handler_now_dummy ()
int
sigframe::call_signal_handler ()
{
- unregister ();
- return call_signal_handler_now ();
+ return unregister () ? call_signal_handler_now () : 0;
+
}
#define pid_offset (unsigned)(((_pinfo *)NULL)->pid)