aboutsummaryrefslogtreecommitdiff
path: root/bin/pkill
diff options
context:
space:
mode:
authorLawrence Stewart <lstewart@FreeBSD.org>2017-08-24 08:20:23 +0000
committerLawrence Stewart <lstewart@FreeBSD.org>2017-08-24 08:20:23 +0000
commitcf182be5e26f522acc600e62ef83f9d32c62b6b7 (patch)
treec850c7c3f8ee1c993fc49a48198bcf0f60390510 /bin/pkill
parent8ac4c959ab003827d34aebab7fcf825223dba5e3 (diff)
downloadsrc-cf182be5e26f522acc600e62ef83f9d32c62b6b7.tar.gz
src-cf182be5e26f522acc600e62ef83f9d32c62b6b7.zip
Only emit the trailing new line added in r322613 when not operating in quiet
mode. Reported by: pho MFC after: 1 week X-MFC-with: r322210
Notes
Notes: svn path=/head/; revision=322831
Diffstat (limited to 'bin/pkill')
-rw-r--r--bin/pkill/pkill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkill/pkill.c b/bin/pkill/pkill.c
index 380dc29e1f04..8a307a6022ea 100644
--- a/bin/pkill/pkill.c
+++ b/bin/pkill/pkill.c
@@ -568,7 +568,7 @@ main(int argc, char **argv)
continue;
rv |= (*action)(kp);
}
- if (rv && pgrep)
+ if (rv && pgrep && !quiet)
putchar('\n');
if (!did_action && !pgrep && longfmt)
fprintf(stderr,