]> sourceware.org Git - newlib-cygwin.git/commitdiff
* kill.cc (listsig): NSIG includes Signal 0, so we need to avoid calling
authorChristopher Faylor <me@cgf.cx>
Thu, 27 May 2004 15:15:51 +0000 (15:15 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 27 May 2004 15:15:51 +0000 (15:15 +0000)
strtosigno with NSIG - 1.

winsup/utils/ChangeLog
winsup/utils/kill.cc

index af668e7510a948103911d9db5f5aa63fa347b02f..93c2ff788fe76a4ed3f828da1a45323acbe5f1f4 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-27  Christopher Faylor  <cgf@alum.bu.edu>
+
+       * kill.cc (listsig): NSIG includes Signal 0, so we need to avoid
+       calling strtosigno with NSIG - 1.
+
 2004-03-21  Christopher Faylor  <cgf@redhat.com>
 
        * cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output.
index deb0b41a32fb510ce6750384cb445d46169cd86b..ba15a1067e1f5b6a81c2a543339a04e3f06f5d83 100644 (file)
@@ -112,7 +112,7 @@ listsig (const char *in_sig)
 {
   int sig;
   if (!in_sig)
-    for (sig = 1; sig < NSIG; sig++)
+    for (sig = 1; sig < NSIG - 1; sig++)
       printf ("%s%c", strsigno (sig) + 3, (sig < NSIG - 1) ? ' ' : '\n');
   else
     {
This page took 0.029131 seconds and 5 git commands to generate.