HomeFreeBSD

Fix up proc_realparent to always return correct process.

Description

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

Details

Provenance
mjgAuthored on
Parents
rS270992: Fix logical error.
Branches
Unknown
Tags
Unknown

Event Timeline