diff --git a/bin/pkill/pkill.c b/bin/pkill/pkill.c index abdc4502d36c..f65767a8f386 100644 --- a/bin/pkill/pkill.c +++ b/bin/pkill/pkill.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include @@ -656,10 +657,12 @@ killact(const struct kinfo_proc *kp) static int grepact(const struct kinfo_proc *kp) { + static bool first = true; - show_process(kp); - if (!quiet) + if (!quiet && !first) printf("%s", delim); + show_process(kp); + first = false; return (1); }