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);
 }
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to