Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-27 19:15:51 +0400
committerChristopher Faylor <me@cgf.cx>2004-05-27 19:15:51 +0400
commit0512945eb5cfb23dde001cbb8875b04fcf3071b1 (patch)
tree588c729e67e1a0e957636b62cf25e3bf5990cbc8 /winsup/utils
parent3f611058b784531fb75fa47f1c980611b9cabc97 (diff)
* kill.cc (listsig): NSIG includes Signal 0, so we need to avoid calling
strtosigno with NSIG - 1.
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/ChangeLog5
-rw-r--r--winsup/utils/kill.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index af668e751..93c2ff788 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -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.
diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc
index deb0b41a3..ba15a1067 100644
--- a/winsup/utils/kill.cc
+++ b/winsup/utils/kill.cc
@@ -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
{