]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix up proc_realparent to always return correct process.
authorMateusz Guzik <mjg@FreeBSD.org>
Wed, 3 Sep 2014 06:25:34 +0000 (06:25 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Wed, 3 Sep 2014 06:25:34 +0000 (06:25 +0000)
commit9152087ea7708d30840284a8f81003617a48a495
tree32ac706ce6817d81a73de2654cf0afb12964b7b6
parent6084a8c0ecbbdcd91afb342d8cbec4abd667b180
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