Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Handle SONPROC state.
details: https://anonhg.NetBSD.org/src/rev/032f36ec0251
branches: trunk
changeset: 486577:032f36ec0251
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri May 26 00:42:34 2000 +0000
description:
Handle SONPROC state.
diffstat:
bin/ps/print.c | 5 +++--
usr.bin/w/proc_compare.c | 7 ++++---
2 files changed, 7 insertions(+), 5 deletions(-)
diffs (54 lines):
diff -r 98f6a21f1b1b -r 032f36ec0251 bin/ps/print.c
--- a/bin/ps/print.c Fri May 26 00:36:42 2000 +0000
+++ b/bin/ps/print.c Fri May 26 00:42:34 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.49 1999/12/05 18:33:28 fredb Exp $ */
+/* $NetBSD: print.c,v 1.50 2000/05/26 00:42:34 thorpej Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#else
-__RCSID("$NetBSD: print.c,v 1.49 1999/12/05 18:33:28 fredb Exp $");
+__RCSID("$NetBSD: print.c,v 1.50 2000/05/26 00:42:34 thorpej Exp $");
#endif
#endif /* not lint */
@@ -253,6 +253,7 @@
case SRUN:
case SIDL:
+ case SONPROC:
*cp = 'R';
break;
diff -r 98f6a21f1b1b -r 032f36ec0251 usr.bin/w/proc_compare.c
--- a/usr.bin/w/proc_compare.c Fri May 26 00:36:42 2000 +0000
+++ b/usr.bin/w/proc_compare.c Fri May 26 00:42:34 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: proc_compare.c,v 1.7 1997/10/20 02:49:14 mrg Exp $ */
+/* $NetBSD: proc_compare.c,v 1.8 2000/05/26 00:44:27 thorpej Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)proc_compare.c 8.2 (Berkeley) 9/23/93";
#else
-__RCSID("$NetBSD: proc_compare.c,v 1.7 1997/10/20 02:49:14 mrg Exp $");
+__RCSID("$NetBSD: proc_compare.c,v 1.8 2000/05/26 00:44:27 thorpej Exp $");
#endif
#endif /* not lint */
@@ -67,7 +67,8 @@
* TODO - consider whether pctcpu should be used.
*/
-#define ISRUN(p) (((p)->p_stat == SRUN) || ((p)->p_stat == SIDL))
+#define ISRUN(p) (((p)->p_stat == SRUN) || ((p)->p_stat == SIDL) || \
+ ((p)->p_stat == SONPROC))
#define TESTAB(a, b) ((a)<<1 | (b))
#define ONLYA 2
#define ONLYB 1
Home |
Main Index |
Thread Index |
Old Index