aboutsummaryrefslogtreecommitdiff
path: root/bin/kill
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2011-02-04 16:40:50 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2011-02-04 16:40:50 +0000
commit12dacf622b5b8b31e2bcca0bebc9d3dba4755a83 (patch)
tree9329b5fbe679fd0331b8e009f284c8f7704ad8e3 /bin/kill
parent729e10b9e24f9414ada2e7d79434fe672dbc9aa4 (diff)
downloadsrc-12dacf622b5b8b31e2bcca0bebc9d3dba4755a83.tar.gz
src-12dacf622b5b8b31e2bcca0bebc9d3dba4755a83.zip
Make sys_signame upper case.
This matches the constants from <signal.h> with 'SIG' removed, which POSIX requires kill and trap to accept and 'kill -l' to write. 'kill -l', 'trap', 'trap -l' output is now upper case. In Turkish locales, signal names with an upper case 'I' are now accepted, while signal names with a lower case 'i' are no longer accepted, and the output of 'killall -l' now contains proper capital 'I' without dot instead of a dotted capital 'I'.
Notes
Notes: svn path=/head/; revision=218285
Diffstat (limited to 'bin/kill')
-rw-r--r--bin/kill/kill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/kill/kill.c b/bin/kill/kill.c
index edfc92832648..69ad0c8da24c 100644
--- a/bin/kill/kill.c
+++ b/bin/kill/kill.c
@@ -152,7 +152,7 @@ signame_to_signum(const char *sig)
{
int n;
- if (!strncasecmp(sig, "sig", (size_t)3))
+ if (!strncasecmp(sig, "SIG", (size_t)3))
sig += 3;
for (n = 1; n < sys_nsig; n++) {
if (!strcasecmp(sys_signame[n], sig))