aboutsummaryrefslogtreecommitdiff
path: root/bin/kill/kill.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-03-05 21:52:41 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-03-05 21:52:41 +0000
commit8d0ab009127002601057fca33c2934d559926497 (patch)
treea890d6fac5f144b037fe1501e1137b40c8925f11 /bin/kill/kill.c
parentfeadd389790433193e88795efd3a53e7c74941ce (diff)
downloadsrc-8d0ab009127002601057fca33c2934d559926497.tar.gz
src-8d0ab009127002601057fca33c2934d559926497.zip
Allow 0 as a signal number to match the man page.
Noticed by: Mike Murphy <mrm@Sceard.COM>
Notes
Notes: svn path=/head/; revision=6908
Diffstat (limited to 'bin/kill/kill.c')
-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 8c7a0e73662f..7de25e157206 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);