diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-17 02:24:56 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-17 02:24:56 +0000 |
commit | 71d280e38f6b1166e3ba01f7a839868275eb4b7f (patch) | |
tree | eab990f9f6904b20b8a0dc2b4bae6db80077cd51 /mg.c | |
parent | 52853b95ebed443e023862f2a1db2614404699e5 (diff) | |
download | perl-71d280e38f6b1166e3ba01f7a839868275eb4b7f.tar.gz |
reenable fake signal handling on Windows, bugs and all
p4raw-id: //depot/perl@6108
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2100,7 +2100,11 @@ static SV* sig_sv; Signal_t Perl_sighandler(int sig) { +#if defined(WIN32) && defined(PERL_IMPLICIT_CONTEXT) + dTHXoa(PL_curinterp); /* fake TLS, because signals don't do TLS */ +#else dTHX; +#endif dSP; GV *gv = Nullgv; HV *st; @@ -2110,6 +2114,10 @@ Perl_sighandler(int sig) U32 flags = 0; I32 o_save_i = PL_savestack_ix; XPV *tXpv = PL_Xpv; + +#if defined(WIN32) && defined(PERL_IMPLICIT_CONTEXT) + PERL_SET_THX(aTHXo); /* fake TLS, see above */ +#endif if (PL_savestack_ix + 15 <= PL_savestack_max) flags |= 1; |