summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-11-20 15:19:36 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-11-20 15:19:36 +0000
commitef3f8aa3fa68a53e4fb36a449b1b8f7b88d809d9 (patch)
tree97e7dd17f4e709912e1e72017f913e2b3a08622f /mg.c
parent55f4245edad4e38b1869f0a6467a997a59257a0f (diff)
downloadperl-ef3f8aa3fa68a53e4fb36a449b1b8f7b88d809d9.tar.gz
Make undef $SIG{FOO} ignore the signal FOO
p4raw-id: //depot/perl@29327
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 e4d73932a9..494e9fd7ec 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 = SvPV_force(sv,len);
+ s = SvOK(sv) ? SvPV_force(sv,len) : "IGNORE";
if (strEQ(s,"IGNORE")) {
if (i) {
#ifdef FAKE_PERSISTENT_SIGNAL_HANDLERS