summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyber <cyber@NetBSD.org>2001-06-14 19:04:49 +0000
committercyber <cyber@NetBSD.org>2001-06-14 19:04:49 +0000
commit428f40d6859e7c49259f43751eb8dbd16e7e401b (patch)
tree8755ce33414ccd2073241aed6c58dc059b38b289
parent1d161cd563ca0bd1dd5e54b6d9bba1c75898a033 (diff)
If there were no processes to list, it meant that our criteria failed
and didnt match anything. Dont make our caller think we succeeded.
-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 690ecbc4d59..b862c449750 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ps.c,v 1.41 2000/06/16 03:51:00 simonb Exp $ */
+/* $NetBSD: ps.c,v 1.42 2001/06/14 19:04:49 cyber Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: ps.c,v 1.41 2000/06/16 03:51:00 simonb Exp $");
+__RCSID("$NetBSD: ps.c,v 1.42 2001/06/14 19:04:49 cyber Exp $");
#endif
#endif /* not lint */
@@ -391,7 +391,7 @@ main(argc, argv)
}
if (nentries == 0) {
printheader();
- exit(0);
+ exit(1);
}
/*
* sort proc list