Module Name: src
Committed By: christos
Date: Sun Nov 13 15:25:01 UTC 2016
Modified Files:
src/sys/kern: kern_exit.c kern_prot.c
Log Message:
Make p_ppid contain the original parent's pid even for traced processes.
Only change it when we are being permanently reparented to init. Since
p_ppid is only used as a cached value to retrieve the parent's process id
from userland, this change makes it correct at all times. Idea from kre@
Revert specialized logic from getpid/getppid now that it is not needed.
To generate a diff of this commit:
cvs rdiff -u -r1.266 -r1.267 src/sys/kern/kern_exit.c
cvs rdiff -u -r1.120 -r1.121 src/sys/kern/kern_prot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.