summaryrefslogtreecommitdiff
path: root/bin/ps/ps.c
diff options
context:
space:
mode:
authormichaels <michaels@cvs.openbsd.org>1997-06-13 00:37:40 +0000
committermichaels <michaels@cvs.openbsd.org>1997-06-13 00:37:40 +0000
commit6722bc37fe9d60cc921db87e90b73b3b0d75a28f (patch)
treeda500e2405cbef3109ba1cfaf67076ba675a0206 /bin/ps/ps.c
parentdb297923f3c84d9dc4a5e88bcd5095b0874b0c70 (diff)
return 1 if the process does not exist.
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r--bin/ps/ps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 9d7d64e3da3..1546df9998b 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ps.c,v 1.7 1996/12/22 02:57:50 tholo Exp $ */
+/* $OpenBSD: ps.c,v 1.8 1997/06/13 00:37:39 michaels Exp $ */
/* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: ps.c,v 1.7 1996/12/22 02:57:50 tholo Exp $";
+static char rcsid[] = "$OpenBSD: ps.c,v 1.8 1997/06/13 00:37:39 michaels Exp $";
#endif
#endif /* not lint */
@@ -320,7 +320,7 @@ main(argc, argv)
*/
printheader();
if (nentries == 0)
- exit(0);
+ exit(1);
/*
* sort proc list
*/