top: parallel the master branch pids monitoring change

This commit will just parallel a pending master branch
merge request referenced below. Note, however, that it
is not really needed in this newlib branch because the
procps_pids_select() function itself provides a 'zero'
delimiter with every caller's designated list of pids.

[ since it's required under the master branch, we're ]
[ repeating it here just for documentation purposes. ]

Reference(s):
https://gitlab.com/procps-ng/procps/merge_requests/86

Originally-by: Yoann Lecuyer <yoann.lecuyer@gmail.com>
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2019-08-10 00:00:00 +00:00 committed by Craig Small
parent 90c22e64ff
commit 34a5ea71cd

View File

@ -90,7 +90,7 @@ static float Cpu_pmax;
static const char *Cpu_States_fmts;
/* Specific process id monitoring support */
static unsigned Monpids [MONPIDMAX] = { 0 };
static unsigned Monpids [MONPIDMAX+1] = { 0 };
static int Monpidsidx = 0;
/* Current screen dimensions.