diff options
author | jkh <jkh@FreeBSD.org> | 1995-03-05 21:52:41 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-03-05 21:52:41 +0000 |
commit | 1d346f4dd390c079db7b88e48952b9621d33bb8b (patch) | |
tree | a890d6fac5f144b037fe1501e1137b40c8925f11 /bin/kill | |
parent | c7088a996b8955c113166277ac0053bbb6c6c6cf (diff) | |
download | FreeBSD-src-1d346f4dd390c079db7b88e48952b9621d33bb8b.zip FreeBSD-src-1d346f4dd390c079db7b88e48952b9621d33bb8b.tar.gz |
Allow 0 as a signal number to match the man page.
Noticed by: Mike Murphy <mrm@Sceard.COM>
Diffstat (limited to 'bin/kill')
-rw-r--r-- | bin/kill/kill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/kill/kill.c b/bin/kill/kill.c index 8c7a0e7..7de25e1 100644 --- a/bin/kill/kill.c +++ b/bin/kill/kill.c @@ -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); |