ps: display control group name

The cgroup field while shown as a vector is a concatenated
string, so alot of the complexity of sorting and displaying
has gone.

This change simplifies the cgroup sorting and adds display
and sorting for the name attribute of the cgroup, if found.

Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
Craig Small
2015-08-15 17:10:38 +10:00
parent 4bd0e539af
commit 0ee090ae16
3 changed files with 46 additions and 8 deletions

View File

@ -4,7 +4,7 @@
.\" Quick hack conversion by Albert Cahalan, 1998.
.\" Licensed under version 2 of the Gnu General Public License.
.\"
.TH PS 1 "June 2015" "procps-ng" "User Commands"
.TH PS 1 "August 2015" "procps-ng" "User Commands"
.\"
.\" To render this page:
.\" groff -t -b -man -X -P-resolution -P100 -Tps ps.1 &
@ -1080,6 +1080,10 @@ format is displayed. (alias
.BR sig_catch , \ sigcatch ).
T}
cgname CGNAME T{
display name of control groups to which the process belongs.
T}
cgroup CGROUP T{
display control groups to which the process belongs.
T}