summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-10-29 23:11:11 +0330
committerAndreas Kling <kling@serenityos.org>2020-10-29 22:27:24 +0100
commitbed270ca47172577953cea05d6627504f0be50e6 (patch)
tree1826d5ed8d6358734e50cd476fe042c8df804f29 /Userland
parent180cc85d797b443ca29f2e85cdf55e660eb78d19 (diff)
downloadserenity-bed270ca47172577953cea05d6627504f0be50e6.zip
Userland: Do not put a trailing space after the resulting pids in pidof
Diffstat (limited to 'Userland')
-rw-r--r--Userland/pidof.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/pidof.cpp b/Userland/pidof.cpp
index fe3b052bb9..ff1787bc45 100644
--- a/Userland/pidof.cpp
+++ b/Userland/pidof.cpp
@@ -44,7 +44,7 @@ static int pid_of(const String& process_name, bool single_shot, bool omit_pid, p
for (auto& it : processes) {
if (it.value.name == process_name) {
if (!omit_pid || it.value.pid != pid) {
- printf("%d ", it.value.pid);
+ printf(" %d" + (displayed_at_least_one ? 0 : 1), it.value.pid);
displayed_at_least_one = true;
if (single_shot)