Date: Wed, 22 Oct 2014 04:16:10 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273452 - head/sys/kern Message-ID: <201410220416.s9M4GAJA098112@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Wed Oct 22 04:16:09 2014 New Revision: 273452 URL: https://svnweb.freebsd.org/changeset/base/273452 Log: Plug unnecessary PRS_NEW check in kern_procctl. pfind does not return processes in such state. Modified: head/sys/kern/sys_process.c Modified: head/sys/kern/sys_process.c ============================================================================== --- head/sys/kern/sys_process.c Wed Oct 22 04:09:47 2014 (r273451) +++ head/sys/kern/sys_process.c Wed Oct 22 04:16:09 2014 (r273452) @@ -1373,10 +1373,7 @@ kern_procctl(struct thread *td, idtype_t error = ESRCH; break; } - if (p->p_state == PRS_NEW) - error = ESRCH; - else - error = p_cansee(td, p); + error = p_cansee(td, p); if (error == 0) error = kern_procctl_single(td, p, com, data); PROC_UNLOCK(p);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410220416.s9M4GAJA098112>