Browse Source

* kill.cc (listsig): NSIG includes Signal 0, so we need to avoid calling

strtosigno with NSIG - 1.
unlabeled-1.22.4
Christopher Faylor 23 years ago
parent
commit
0512945eb5
  1. 5
      winsup/utils/ChangeLog
  2. 2
      winsup/utils/kill.cc

5
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.

2
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
{

Loading…
Cancel
Save