Date: Wed, 4 Oct 2017 12:01:03 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r324270 - stable/11/bin/ps Message-ID: <201710041201.v94C13ts012546@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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';
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710041201.v94C13ts012546>