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
This commit is contained in:
Konstantin Belousov 2010-02-25 13:53:09 +00:00
parent 4d44fc9c59
commit c67ea27d10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204308

View File

@ -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);