Date: Tue, 3 Nov 2015 08:28:47 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r290323 - stable/10/sys/kern Message-ID: <201511030828.tA38Sl5s057840@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue Nov 3 08:28:47 2015 New Revision: 290323 URL: https://svnweb.freebsd.org/changeset/base/290323 Log: MFC r289658: No need to dereference struct proc to pids when comparing processes for equality. Modified: stable/10/sys/kern/sys_process.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/sys_process.c ============================================================================== --- stable/10/sys/kern/sys_process.c Tue Nov 3 05:25:06 2015 (r290322) +++ stable/10/sys/kern/sys_process.c Tue Nov 3 08:28:47 2015 (r290323) @@ -748,7 +748,7 @@ kern_ptrace(struct thread *td, int req, case PT_ATTACH: /* Self */ - if (p->p_pid == td->td_proc->p_pid) { + if (p == td->td_proc) { error = EINVAL; goto fail; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511030828.tA38Sl5s057840>