diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/librc/librc-daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index 863e80d1..0a0fbb8f 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -160,7 +160,7 @@ rc_find_pids(const char *exec, const char *const *argv, uid_t uid, pid_t pid) proc_ns[0] = '\0'; } free(buffer); - if (strlen(my_ns) && strlen (proc_ns) && strcmp(my_ns, proc_ns)) + if (pid == 0 && strlen(my_ns) && strlen (proc_ns) && strcmp(my_ns, proc_ns)) continue; if (uid) { xasprintf(&buffer, "/proc/%d", p); |