diff options
author | Craig A. Berry <craigberry@mac.com> | 2007-10-04 15:06:59 +0000 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2007-10-04 15:06:59 +0000 |
commit | 6e324d09363a859adf773fade66e3ec1cbf5eb15 (patch) | |
tree | 4f92c4bc37ddd8c8ab780a2cf46c9b6e10fb64f8 /mg.c | |
parent | 353c650532037e4006fbdb2176350717f320f7c3 (diff) | |
download | perl-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.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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); } |