fixlet to pgrep/pkill

This commit is contained in:
Denis Vlasenko 2007-09-30 16:36:02 +00:00
parent a4f4de9b7e
commit 5fb09656ca

View File

@ -121,7 +121,7 @@ int pgrep_main(int argc, char **argv)
matched_pid = proc->pid;
if (OPT_LAST) {
free(cmd_last);
cmd_last = xstrdup(cmd_last);
cmd_last = xstrdup(cmd);
continue;
}
act(proc->pid, cmd, signo, opt);