diff options
author | jilles <jilles@FreeBSD.org> | 2011-02-04 16:40:50 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2011-02-04 16:40:50 +0000 |
commit | dbecc33067971cfd38a340e4435a163832f7601d (patch) | |
tree | 9329b5fbe679fd0331b8e009f284c8f7704ad8e3 /bin/pkill | |
parent | 3060e03b875ee43ddb240f06123eabaa98ae70a5 (diff) | |
download | FreeBSD-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 'bin/pkill')
-rw-r--r-- | bin/pkill/pkill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkill/pkill.c b/bin/pkill/pkill.c index d9959c58..cd91976 100644 --- a/bin/pkill/pkill.c +++ b/bin/pkill/pkill.c @@ -156,7 +156,7 @@ main(int argc, char **argv) argv++; argc--; } else { - if (strncasecmp(p, "sig", 3) == 0) + if (strncasecmp(p, "SIG", 3) == 0) p += 3; for (i = 1; i < NSIG; i++) if (strcasecmp(sys_signame[i], p) == 0) |