Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164750445
D8537.id31735.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
543 B
Referenced Files
None
Subscribers
None
D8537.id31735.diff
View Options
Index: head/bin/pkill/pkill.c
===================================================================
--- head/bin/pkill/pkill.c
+++ head/bin/pkill/pkill.c
@@ -43,6 +43,7 @@
#include <sys/user.h>
#include <assert.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
@@ -656,10 +657,12 @@
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);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 4, 3:47 PM (18 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35966938
Default Alt Text
D8537.id31735.diff (543 B)
Attached To
Mode
D8537: Suppress emission of delimiter after final PID when using pgrep's -d switch
Attached
Detach File
Event Timeline
Log In to Comment