Date: Sun, 19 Mar 2017 10:28:51 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315537 - stable/11/sys/compat/linux Message-ID: <201703191028.v2JASpPQ064808@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Sun Mar 19 10:28:51 2017 New Revision: 315537 URL: https://svnweb.freebsd.org/changeset/base/315537 Log: MFC r313017: Fix linux_getppid() to debug the actual parent, even it was reparented by debugger. Modified: stable/11/sys/compat/linux/linux_misc.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/compat/linux/linux_misc.c ============================================================================== --- stable/11/sys/compat/linux/linux_misc.c Sun Mar 19 10:28:04 2017 (r315536) +++ stable/11/sys/compat/linux/linux_misc.c Sun Mar 19 10:28:51 2017 (r315537) @@ -1726,9 +1726,7 @@ linux_getppid(struct thread *td, struct printf(ARGS(getppid, "")); #endif - PROC_LOCK(td->td_proc); - td->td_retval[0] = td->td_proc->p_pptr->p_pid; - PROC_UNLOCK(td->td_proc); + td->td_retval[0] = kern_getppid(td); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703191028.v2JASpPQ064808>