Fix linux_getppid() to debug the actual parent, even it was reparented
by debugger. Reviewed by: dchagin@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9361
This commit is contained in:
parent
fc8bde8ffe
commit
5db72ef2e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313017
@ -1733,9 +1733,7 @@ linux_getppid(struct thread *td, struct linux_getppid_args *args)
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user