misc: update for pgrep runstate

Added some minor fixes and notes
This commit is contained in:
Craig Small 2019-03-05 07:59:48 +11:00
parent 2b40d5d839
commit 2fa3bb0669
3 changed files with 4 additions and 2 deletions

2
NEWS
View File

@ -2,6 +2,8 @@ procps-ng-NEXT
---------------- ----------------
* docs: Use correct symbols for -h option in free.1 Debian #898774 * docs: Use correct symbols for -h option in free.1 Debian #898774
* docs: ps.1 now warns about command name length issue #101 * docs: ps.1 now warns about command name length issue #101
* pgrep: Match on runstate issue 109
Debian #919381
* top: can now exploit 256-color terminals issue #96 * top: can now exploit 256-color terminals issue #96
* top: preserves 'other filters' in configuration file issue #99 * top: preserves 'other filters' in configuration file issue #99
* top: can now collapse/expand forest view children issue #99 * top: can now collapse/expand forest view children issue #99

View File

@ -7,7 +7,7 @@
.\" the Free Software Foundation; either version 2 of the License, or .\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version. .\" (at your option) any later version.
.\" .\"
.TH PGREP "1" "2017-12-22" "procps-ng" "User Commands" .TH PGREP "1" "2019-03-05" "procps-ng" "User Commands"
.SH NAME .SH NAME
pgrep, pkill \- look up or signal processes based on name and other attributes pgrep, pkill \- look up or signal processes based on name and other attributes
.SH SYNOPSIS .SH SYNOPSIS

View File

@ -560,7 +560,7 @@ static struct el * select_procs (int *num)
match = 0; match = 0;
if (strchr(opt_runstates, task.state)) match = 1; if (strchr(opt_runstates, task.state)) match = 1;
} }
if (task.cmdline && (opt_longlong || opt_full) ) { if (task.cmdline && (opt_longlong || opt_full) ) {
int i = 0; int i = 0;
int bytes = sizeof (cmdline); int bytes = sizeof (cmdline);