Allow 0 as a signal number to match the man page.
Noticed by: Mike Murphy <mrm@Sceard.COM>
This commit is contained in:
parent
feadd38979
commit
8d0ab00912
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6908
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: kill.c,v 1.2 1994/09/24 02:55:44 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -89,7 +89,7 @@ main(argc, argv)
|
||||
numsig = strtol(*argv, &ep, 10);
|
||||
if (!*argv || *ep)
|
||||
errx(1, "illegal signal number: %s", *argv);
|
||||
if (numsig <= 0 || numsig > NSIG)
|
||||
if (numsig < 0 || numsig > NSIG)
|
||||
nosig(*argv);
|
||||
} else
|
||||
nosig(*argv);
|
||||
|
Loading…
Reference in New Issue
Block a user