diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-14 10:30:53 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-14 10:30:53 +0000 |
commit | f7c291c0a4b8dd4226a60bf32ebaf529ff7b0fec (patch) | |
tree | 57f3ec903432a3cb97978df41a6137c611f7ac65 /doio.c | |
parent | 98c6eaef5893e5354b1e86fb1ed2663a0cc54b24 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |