mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +00:00
Userland: Do not put a trailing space after the resulting pids in pidof
This commit is contained in:
parent
180cc85d79
commit
bed270ca47
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue