From 1107f3ba7d8f4031c74620ffbc51d85f1d3c13bc Mon Sep 17 00:00:00 2001 From: Werner Fink Date: Tue, 23 Feb 2010 17:12:12 +0000 Subject: [PATCH] * pidof - shorten list check a bit for network based processes --- src/killall5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/killall5.c b/src/killall5.c index 3a3dec3..3a67ae5 100644 --- a/src/killall5.c +++ b/src/killall5.c @@ -737,7 +737,8 @@ PIDQ_HEAD *pidof(char *prog) char exe [PATH_MAX+1]; char path[PATH_MAX+1]; int len; - + if (!p->nfs) + continue; snprintf(exe, sizeof(exe), "/proc/%d/exe", p->pid); if ((len = readlink(exe, path, PATH_MAX)) < 0) continue;