From 6bbb0bfc80fa3611e8d1a969d214e47ed4f3357e Mon Sep 17 00:00:00 2001 From: Craig Small Date: Tue, 22 Dec 2020 14:25:56 +1100 Subject: [PATCH] pgrep: fix missed change I missed one change from the commit in the master branch meaning pgrep would not compile. References: commit c8384e682c1cfb3b2dc797e0f8a3cbaaccf7a3da --- pgrep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgrep.c b/pgrep.c index 574a5556..3e2a67ec 100644 --- a/pgrep.c +++ b/pgrep.c @@ -570,7 +570,8 @@ static struct el * select_procs (int *num) xerrx(EXIT_FATAL, _("Unable to create pid info structure")); 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; while ((stack = procps_pids_get(info, which))) {