Use ps ppid Option.