summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index aa3fd1180..a56b35e8e 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -1118,6 +1118,17 @@ events_terminate (void)
exit_already = 1;
}
+extern "C" {
+static int __stdcall call_signal_handler_now ();
+};
+
+int
+sigframe::call_signal_handler ()
+{
+ unregister ();
+ call_signal_handler_now ();
+}
+
#define pid_offset (unsigned)(((_pinfo *)NULL)->pid)
extern "C" {
void __stdcall
@@ -1137,13 +1148,6 @@ call_signal_handler_now ()
return sa_flags & SA_RESTART;
}
-int
-sigframe::call_signal_handler ()
-{
- unregister ();
- call_signal_handler_now ();
-}
-
void unused_sig_wrapper ()
{
/* Signal cleanup stuff. Cleans up stack (too bad that we didn't