in chefctl/src/chefctl.rb [597:607]
def parent_process(pid)
out = shell_output("ps -o ppid -p #{pid}")
ppid = -1
out.each_line do |l|
next if /PPID/ =~ l
ppid = l.strip.to_i
end
fail "Couldn't determine ppid of #{pid}" if ppid == -1
ppid
end