whichsig() really does return -1 for unknown signals.
Jarkko Hietaniemi [Fri, 14 Mar 2003 12:48:09 +0000 (12:48 +0000)]
p4raw-id: //depot/perl@18979

mg.c

diff --git a/mg.c b/mg.c
index 0c37807..63b9cfc 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -2450,7 +2450,7 @@ Perl_whichsig(pTHX_ char *sig)
     if (strEQ(sig,"CLD"))
        return SIGCHLD;
 #endif
-    return 0;
+    return -1;
 }
 
 #if !defined(PERL_IMPLICIT_CONTEXT)