Make printing of lwp flags similar to the process one, identifying (O)nproc
(K)ernel threads and scheduler (a)ctivations.
This commit is contained in:
parent
ea936748e5
commit
055b26bb55
|
@ -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 @@ lstate(void *arg, VARENT *ve, int mode)
|
|||
*cp = '?';
|
||||
}
|
||||
cp++;
|
||||
if (flag & P_SYSTEM)
|
||||
*cp++ = 'K';
|
||||
if (flag & L_DETACHED)
|
||||
*cp++ = '-';
|
||||
*cp = '\0';
|
||||
|
|
Loading…
Reference in New Issue