summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-14 10:30:53 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-14 10:30:53 +0000
commitf7c291c0a4b8dd4226a60bf32ebaf529ff7b0fec (patch)
tree57f3ec903432a3cb97978df41a6137c611f7ac65 /doio.c
parent98c6eaef5893e5354b1e86fb1ed2663a0cc54b24 (diff)
downloadperl-f7c291c0a4b8dd4226a60bf32ebaf529ff7b0fec.tar.gz
Make whichsig() to work also if some system defines
zero signals (now -1 is the "not found"). Note that in couple of mg.c spots only whichsig() > 0 branches are taken because signal handlers et al don't make much sense for the zero signal. p4raw-id: //depot/perl@18975
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doio.c b/doio.c
index 5ac31047ae..091e02b944 100644
--- a/doio.c
+++ b/doio.c
@@ -1641,10 +1641,10 @@ nothing in the core.
if (mark == sp)
break;
s = SvPVx(*++mark, n_a);
- if (isUPPER(*s)) {
+ if (isALPHA(*s)) {
if (*s == 'S' && s[1] == 'I' && s[2] == 'G')
s += 3;
- if (!(val = whichsig(s)))
+ if ((val = whichsig(s)) < 0)
Perl_croak(aTHX_ "Unrecognized signal name \"%s\"",s);
}
else