]> granicus.if.org Git - procps-ng/commitdiff
pidwait: Add missing name change line
authorCraig Small <csmall@dropbear.xyz>
Mon, 15 Feb 2021 19:48:51 +0000 (06:48 +1100)
committerCraig Small <csmall@dropbear.xyz>
Mon, 15 Feb 2021 19:48:51 +0000 (06:48 +1100)
Missed one of the lines that changes from pwait to pidwait
in referenced commit.

References:
 commit 9c1a62b6373abe1a88d8cb51a67090950c5097e6

pgrep.c

diff --git a/pgrep.c b/pgrep.c
index 6b20e69b87863e85848c948db57146dc09625069..0fd85b7c4de9b913c1eb75b3b20c3a548286260e 100644 (file)
--- a/pgrep.c
+++ b/pgrep.c
@@ -569,7 +569,7 @@ static struct el * select_procs (int *num)
         xerrx(EXIT_FATAL,
               _("Unable to create pid info structure"));
     which = PIDS_FETCH_TASKS_ONLY;
-    // pkill and pwait don't support -w, but this is checked in getopt
+    // pkill and pidwait don't support -w, but this is checked in getopt
     if (opt_threads)
         which = PIDS_FETCH_THREADS_TOO;
 
@@ -751,7 +751,7 @@ static void parse_opts (int argc, char **argv)
 
 #ifdef ENABLE_PIDWAIT
     if (strcmp (program_invocation_short_name, "pidwait") == 0) {
-        prog_mode = PWAIT;
+        prog_mode = PIDWAIT;
         strcat (opts, "e");
     } else
 #endif