diff options
author | Christopher Faylor <me@cgf.cx> | 2004-05-27 19:15:51 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-05-27 19:15:51 +0400 |
commit | 0512945eb5cfb23dde001cbb8875b04fcf3071b1 (patch) | |
tree | 588c729e67e1a0e957636b62cf25e3bf5990cbc8 /winsup/utils/kill.cc | |
parent | 3f611058b784531fb75fa47f1c980611b9cabc97 (diff) |
* kill.cc (listsig): NSIG includes Signal 0, so we need to avoid calling
strtosigno with NSIG - 1.
Diffstat (limited to 'winsup/utils/kill.cc')
-rw-r--r-- | winsup/utils/kill.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |