From 34a5ea71cd047f4cc6ee80453caa4fecf8e178a5 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sat, 10 Aug 2019 00:00:00 +0000 Subject: [PATCH] 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 Signed-off-by: Jim Warner --- top/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/top/top.c b/top/top.c index d75810f6..045748e9 100644 --- a/top/top.c +++ b/top/top.c @@ -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.