svn commit: r324270 - stable/11/bin/ps
Edward Tomasz Napierala
trasz at FreeBSD.org
Wed Oct 4 12:01:04 UTC 2017
Author: trasz
Date: Wed Oct 4 12:01:02 2017
New Revision: 324270
URL: https://svnweb.freebsd.org/changeset/base/324270
Log:
MFC r323225:
Reflect realtime and idle priorities in ps(1) state flags, same like
we do for the usual nice values. It could be argued that they should
use another set of indicators, since the underlying mechanism is
different, but they match the description in the manual page, and so
I think it's ok to not overcomplicate things.
PR: 81757
Modified:
stable/11/bin/ps/print.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/bin/ps/print.c
==============================================================================
--- stable/11/bin/ps/print.c Wed Oct 4 11:59:53 2017 (r324269)
+++ stable/11/bin/ps/print.c Wed Oct 4 12:01:02 2017 (r324270)
@@ -262,9 +262,9 @@ state(KINFO *k, VARENT *ve __unused)
cp++;
if (!(flag & P_INMEM))
*cp++ = 'W';
- if (k->ki_p->ki_nice < NZERO)
+ if (k->ki_p->ki_nice < NZERO || k->ki_p->ki_pri.pri_class == PRI_REALTIME)
*cp++ = '<';
- else if (k->ki_p->ki_nice > NZERO)
+ else if (k->ki_p->ki_nice > NZERO || k->ki_p->ki_pri.pri_class == PRI_IDLE)
*cp++ = 'N';
if (flag & P_TRACED)
*cp++ = 'X';
More information about the svn-src-all
mailing list