in reply to Re: Who called Perl?in thread Who called Perl?
... with the caveat that orphaned processes get adopted by init (process 1). Might want to test for that.
Also, there's a potential for race in there.