in reply to
Broken getppid() on Darwin/OSX
I think you're seeing the results of a race where sometimes the parent dies before the child sees it's parent's PID. See
http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC14
for info on why you see this on unix-like systems.
Comment on
Re: Broken getppid() on Darwin/OSX
In Section
Seekers of Perl Wisdom