summaryrefslogtreecommitdiffstats
path: root/usr.bin/killall
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-02-04 16:40:50 +0000
committerjilles <jilles@FreeBSD.org>2011-02-04 16:40:50 +0000
commitdbecc33067971cfd38a340e4435a163832f7601d (patch)
tree9329b5fbe679fd0331b8e009f284c8f7704ad8e3 /usr.bin/killall
parent3060e03b875ee43ddb240f06123eabaa98ae70a5 (diff)
downloadFreeBSD-src-dbecc33067971cfd38a340e4435a163832f7601d.zip
FreeBSD-src-dbecc33067971cfd38a340e4435a163832f7601d.tar.gz
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'.
Diffstat (limited to 'usr.bin/killall')
-rw-r--r--usr.bin/killall/killall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c
index 0a779fd..2342a32 100644
--- a/usr.bin/killall/killall.c
+++ b/usr.bin/killall/killall.c
@@ -218,7 +218,7 @@ main(int ac, char **av)
break;
default:
if (isalpha((unsigned char)**av)) {
- if (strncasecmp(*av, "sig", 3) == 0)
+ if (strncasecmp(*av, "SIG", 3) == 0)
*av += 3;
for (sig = NSIG, p = sys_signame + 1;
--sig; ++p)
OpenPOWER on IntegriCloud