summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-11-20 15:31:03 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-11-20 15:31:03 +0000
commitbaf38871fc80983cac18186eda941e2cc1b9430b (patch)
tree5a19892dc42741d4c2a71d0ee805a9f414d8c64e /mg.c
parentef3f8aa3fa68a53e4fb36a449b1b8f7b88d809d9 (diff)
downloadperl-baf38871fc80983cac18186eda941e2cc1b9430b.tar.gz
Actually, undef $SIG{FOO} should restore the default signal
handler. Else, once we exit a block where the signal handler was localized, it becomes ignored. p4raw-id: //depot/perl@29328
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 494e9fd7ec..a01ab36286 100644
--- a/mg.c
+++ b/mg.c
@@ -1459,7 +1459,7 @@ Perl_magic_setsig(pTHX_ SV *sv, MAGIC *mg)
SvREFCNT_dec(to_dec);
return 0;
}
- s = SvOK(sv) ? SvPV_force(sv,len) : "IGNORE";
+ s = SvOK(sv) ? SvPV_force(sv,len) : "DEFAULT";
if (strEQ(s,"IGNORE")) {
if (i) {
#ifdef FAKE_PERSISTENT_SIGNAL_HANDLERS