4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 12:29:32 +08:00

* kill.cc (listsig): Display numeric id when given symbolic input.

This commit is contained in:
Christopher Faylor 2002-05-13 05:35:44 +00:00
parent 3ff9fd2b9b
commit 6eabab557a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-05-13 Christopher Faylor <cgf@redhat.com>
* kill.cc (listsig): Display numeric id when given symbolic input.
2002-05-13 Christopher Faylor <cgf@redhat.com> 2002-05-13 Christopher Faylor <cgf@redhat.com>
* kill.cc (usage): Show new options. Allow specification of output * kill.cc (usage): Show new options. Allow specification of output

View File

@ -82,7 +82,10 @@ listsig (const char *in_sig)
{ {
sig = getsig (in_sig); sig = getsig (in_sig);
test_for_unknown_sig (sig, in_sig); test_for_unknown_sig (sig, in_sig);
puts (strsigno (sig) + 3); if (atoi (in_sig) == sig)
puts (strsigno (sig) + 3);
else
printf ("%d\n", sig);
} }
} }