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>
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.