summaryrefslogtreecommitdiffstats
path: root/bin/kill
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-03-05 21:52:41 +0000
committerjkh <jkh@FreeBSD.org>1995-03-05 21:52:41 +0000
commit1d346f4dd390c079db7b88e48952b9621d33bb8b (patch)
treea890d6fac5f144b037fe1501e1137b40c8925f11 /bin/kill
parentc7088a996b8955c113166277ac0053bbb6c6c6cf (diff)
downloadFreeBSD-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.c4
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);
OpenPOWER on IntegriCloud