diff options
-rw-r--r-- | sys/kern/kern_proc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 0edcc25..3b96d51 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -2456,18 +2456,10 @@ sysctl_kern_proc_ps_strings(SYSCTL_HANDLER_ARGS) p = pfind((pid_t)name[0]); if (p == NULL) return (ESRCH); - if (p->p_flag & P_WEXIT) { - PROC_UNLOCK(p); - return (ESRCH); - } if ((error = p_cansee(curthread, p)) != 0) { PROC_UNLOCK(p); return (error); } - if ((p->p_flag & P_SYSTEM) != 0) { - PROC_UNLOCK(p); - return (0); - } #ifdef COMPAT_FREEBSD32 if ((req->flags & SCTL_MASK32) != 0) { /* |