aboutsummaryrefslogtreecommitdiff
path: root/bin/kill
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-02-25 13:53:09 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-02-25 13:53:09 +0000
commitc67ea27d10dbb1481e3de4686265b4a66ae3e879 (patch)
tree0ef0b15f2bc2cc8e0c0689026e44080162680ae2 /bin/kill
parent4d44fc9c59364bc186e720ce5130479efa454f9b (diff)
downloadsrc-c67ea27d10dbb1481e3de4686265b4a66ae3e879.tar.gz
src-c67ea27d10dbb1481e3de4686265b4a66ae3e879.zip
Do not restrict the allowed signals that can be specified by number
to the list of signals that has symbolic name. It was impossible to send rt signals with kill(1) due to the check. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=204308
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 bb9982e33b51..8ee1d85d398f 100644
--- a/bin/kill/kill.c
+++ b/bin/kill/kill.c
@@ -108,7 +108,7 @@ main(int argc, char *argv[])
numsig = strtol(*argv, &ep, 10);
if (!**argv || *ep)
errx(1, "illegal signal number: %s", *argv);
- if (numsig < 0 || numsig >= sys_nsig)
+ if (numsig < 0)
nosig(*argv);
} else
nosig(*argv);