diff options
| author | Lawrence Stewart <lstewart@FreeBSD.org> | 2017-08-08 00:31:10 +0000 |
|---|---|---|
| committer | Lawrence Stewart <lstewart@FreeBSD.org> | 2017-08-08 00:31:10 +0000 |
| commit | 27181846bbdd2a8825c1099e692423fae17c5600 (patch) | |
| tree | 93e852e5415ac1d5b9d151158b06dae7370a69ff /bin | |
| parent | 79f39c6aa19e7ce5b09f650df505b964eb45de10 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/pkill/pkill.c | 7 |
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); } |
