summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2007-10-04 15:06:59 +0000
committerCraig A. Berry <craigberry@mac.com>2007-10-04 15:06:59 +0000
commit6e324d09363a859adf773fade66e3ec1cbf5eb15 (patch)
tree4f92c4bc37ddd8c8ab780a2cf46c9b6e10fb64f8 /mg.c
parent353c650532037e4006fbdb2176350717f320f7c3 (diff)
downloadperl-6e324d09363a859adf773fade66e3ec1cbf5eb15.tar.gz
Try a bit harder to get *PL_sighandlerp to agree with its
prototype based on SA_SIGINFO definedness rather than Win32-ness. p4raw-id: //depot/perl@32027
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/mg.c b/mg.c
index f6ba85dfce..8d98b6dd1b 100644
--- a/mg.c
+++ b/mg.c
@@ -1346,15 +1346,13 @@ Perl_csighandler(int sig)
(PL_signals & PERL_SIGNALS_UNSAFE_FLAG))
/* Call the perl level handler now--
* with risk we may be in malloc() etc. */
-#ifdef WIN32
- (*PL_sighandlerp)(sig);
-#else
+#if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
(*PL_sighandlerp)(sig, NULL, NULL);
+#else
+ (*PL_sighandlerp)(sig);
#endif
else
S_raise_signal(aTHX_ sig);
-#if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
-#endif
}
#if defined(FAKE_PERSISTENT_SIGNAL_HANDLERS) || defined(FAKE_DEFAULT_SIGNAL_HANDLERS)
@@ -1389,10 +1387,10 @@ Perl_despatch_signals(pTHX)
PERL_BLOCKSIG_ADD(set, sig);
PL_psig_pend[sig] = 0;
PERL_BLOCKSIG_BLOCK(set);
-#ifdef WIN32
- (*PL_sighandlerp)(sig);
-#else
+#if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
(*PL_sighandlerp)(sig, NULL, NULL);
+#else
+ (*PL_sighandlerp)(sig);
#endif
PERL_BLOCKSIG_UNBLOCK(set);
}