]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix up proc_realparent to always return correct process.
authormjg <mjg@FreeBSD.org>
Wed, 3 Sep 2014 06:25:34 +0000 (06:25 +0000)
committermjg <mjg@FreeBSD.org>
Wed, 3 Sep 2014 06:25:34 +0000 (06:25 +0000)
commit25686bf39b4af295921d0360845a60f7009370d5
tree32ac706ce6817d81a73de2654cf0afb12964b7b6
parentdb9c4f5e7266deb5f2b13123e142c88ea77ac8fb
Fix up proc_realparent to always return correct process.

Prior to the change it would always return initproc for non-traced processes.

This fixes ps apparently always returning 1 as ppid.

Pointy hat: mjg
Reported by: many
MFC after: 1 week
sys/kern/kern_exit.c