in reply to Fork parent process dies unexpectedly
One minor-ish style point, there is no need to do
useuse POSIX 'WNOHANG'; use POSIX 'setsid'; use POSIX 'sys_wait_h';
instead. Repeated use statements for the same module are redundant and become awkward quickly, IMHO.use POSIX qw( WNOHANG setsid sys_wait_h );
If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.
In Section
Seekers of Perl Wisdom