Date: Mon, 22 Jul 2013 02:07:16 +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: r253538 - head/sys/kern Message-ID: <201307220207.r6M27Gt2068482@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Mon Jul 22 02:07:15 2013 New Revision: 253538 URL: http://svnweb.freebsd.org/changeset/base/253538 Log: Remove cr_prison NULL check from proc_to_reap. Userspace processes always have a prison. MFC after: 2 weeks Modified: head/sys/kern/kern_exit.c Modified: head/sys/kern/kern_exit.c ============================================================================== --- head/sys/kern/kern_exit.c Mon Jul 22 00:44:37 2013 (r253537) +++ head/sys/kern/kern_exit.c Mon Jul 22 02:07:15 2013 (r253538) @@ -918,8 +918,7 @@ proc_to_reap(struct thread *td, struct p } break; case P_JAILID: - if (p->p_ucred->cr_prison == NULL || - (p->p_ucred->cr_prison->pr_id != (int)id)) { + if (p->p_ucred->cr_prison->pr_id != (int)id) { PROC_UNLOCK(p); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307220207.r6M27Gt2068482>