* pidof - shorten list check a bit for network based processes
This commit is contained in:
parent
9e449b3f6d
commit
1107f3ba7d
@ -737,7 +737,8 @@ PIDQ_HEAD *pidof(char *prog)
|
|||||||
char exe [PATH_MAX+1];
|
char exe [PATH_MAX+1];
|
||||||
char path[PATH_MAX+1];
|
char path[PATH_MAX+1];
|
||||||
int len;
|
int len;
|
||||||
|
if (!p->nfs)
|
||||||
|
continue;
|
||||||
snprintf(exe, sizeof(exe), "/proc/%d/exe", p->pid);
|
snprintf(exe, sizeof(exe), "/proc/%d/exe", p->pid);
|
||||||
if ((len = readlink(exe, path, PATH_MAX)) < 0)
|
if ((len = readlink(exe, path, PATH_MAX)) < 0)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user