Module Name: src
Committed By: christos
Date: Sat Jan 22 20:55:58 UTC 2011
Modified Files:
src/bin/ps: print.c
Log Message:
Make printing of lwp flags similar to the process one, identifying (O)nproc
(K)ernel threads and scheduler (a)ctivations.
To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/bin/ps/print.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ps/print.c
diff -u src/bin/ps/print.c:1.115 src/bin/ps/print.c:1.116
--- src/bin/ps/print.c:1.115 Wed Jul 28 13:39:54 2010
+++ src/bin/ps/print.c Sat Jan 22 15:55:58 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.115 2010/07/28 17:39:54 njoly Exp $ */
+/* $NetBSD: print.c,v 1.116 2011/01/22 20:55:58 christos Exp $ */
/*
* Copyright (c) 2000, 2007 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
#if 0
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#else
-__RCSID("$NetBSD: print.c,v 1.115 2010/07/28 17:39:54 njoly Exp $");
+__RCSID("$NetBSD: print.c,v 1.116 2011/01/22 20:55:58 christos Exp $");
#endif
#endif /* not lint */
@@ -598,6 +598,8 @@
*cp = '?';
}
cp++;
+ if (flag & P_SYSTEM)
+ *cp++ = 'K';
if (flag & L_DETACHED)
*cp++ = '-';
*cp = '\0';