summaryrefslogtreecommitdiffstats
path: root/winsup/utils
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/kill.cc5
2 files changed, 8 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 878480537..7f34b68de 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 6c72f053b..80758283e 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);
}
}