pidwait: Add missing name change line

Missed one of the lines that changes from pwait to pidwait
in referenced commit.

References:
 commit 9c1a62b637
This commit is contained in:
Craig Small 2021-02-16 06:48:51 +11:00
parent 9c1a62b637
commit 0864cf9a68

View File

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