diff options
author | Christopher Faylor <me@cgf.cx> | 2002-05-13 05:35:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-05-13 05:35:44 +0000 |
commit | 6eabab557a557abd532eb8f1b089c7814950b37f (patch) | |
tree | e97d9880d5a07a62c3712a916d07015c3ed03f06 /winsup | |
parent | 3ff9fd2b9b48f423006371a822ffbb23db8f9a84 (diff) | |
download | newlib-6eabab557a557abd532eb8f1b089c7814950b37f.zip newlib-6eabab557a557abd532eb8f1b089c7814950b37f.tar.gz newlib-6eabab557a557abd532eb8f1b089c7814950b37f.tar.bz2 |
* kill.cc (listsig): Display numeric id when given symbolic input.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/utils/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/utils/kill.cc | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 8784805..7f34b68 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,5 +1,9 @@ 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> + * kill.cc (usage): Show new options. Allow specification of output stream. (main): Implement 'h' option. diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc index 6c72f05..8075828 100644 --- a/winsup/utils/kill.cc +++ b/winsup/utils/kill.cc @@ -82,7 +82,10 @@ listsig (const char *in_sig) { sig = getsig (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); } } |