aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/pkill/pkill.c7
1 files changed, 5 insertions, 2 deletions
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 <sys/user.h>
#include <assert.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
@@ -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);
}