Page MenuHomeFreeBSD

D8537.id31735.diff
No OneTemporary

D8537.id31735.diff

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

Mime Type
text/plain
Expires
Wed, Apr 22, 12:25 AM (18 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31910595
Default Alt Text
D8537.id31735.diff (543 B)

Event Timeline