summaryrefslogtreecommitdiff
path: root/usr.bin/pkill
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2012-02-16 21:25:36 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2012-02-16 21:25:36 +0000
commit4f3a0ab428523b4f675bd7250f39410a5734374c (patch)
treee277bf1b6960cbd486bc378ae5cf5a500f888bd5 /usr.bin/pkill
parent4c9526692717e1c85a770f56ccfbc79b58d4b2ac (diff)
exit usage() with STATUS_BADUSAGE rather than STATUS_ERROR, per the man page;
fix proposed by lum actually happened in netbsd -r1.16, some 6 years ago; ok lum
Diffstat (limited to 'usr.bin/pkill')
-rw-r--r--usr.bin/pkill/pkill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c
index 2f742b57de9..2a3860fe3d9 100644
--- a/usr.bin/pkill/pkill.c
+++ b/usr.bin/pkill/pkill.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pkill.c,v 1.22 2012/02/15 08:19:30 jmc Exp $ */
+/* $OpenBSD: pkill.c,v 1.23 2012/02/16 21:25:35 jmc Exp $ */
/* $NetBSD: pkill.c,v 1.5 2002/10/27 11:49:34 kleink Exp $ */
/*-
@@ -446,7 +446,7 @@ usage(void)
"\n\t[-T rtable] [-t tty] [-U uid] [-u euid] [pattern ...]\n",
__progname, ustr);
- exit(STATUS_ERROR);
+ exit(STATUS_BADUSAGE);
}
int