pgrep: fix missed change

I missed one change from the commit in the master branch meaning
pgrep would not compile.

References:
 commit c8384e682c
This commit is contained in:
Craig Small 2020-12-22 14:25:56 +11:00
parent a55946a7a3
commit 6bbb0bfc80

View File

@ -570,7 +570,8 @@ static struct el * select_procs (int *num)
xerrx(EXIT_FATAL, xerrx(EXIT_FATAL,
_("Unable to create pid info structure")); _("Unable to create pid info structure"));
which = PIDS_FETCH_TASKS_ONLY; which = PIDS_FETCH_TASKS_ONLY;
if (opt_threads && !i_am_pkill) // pkill and pwait don't support -w, but this is checked in getopt
if (opt_threads)
which = PIDS_FETCH_THREADS_TOO; which = PIDS_FETCH_THREADS_TOO;
while ((stack = procps_pids_get(info, which))) { while ((stack = procps_pids_get(info, which))) {