in reply to Understanding fork
You probably also want to have your child do a
$SIG{HUP} = 'IGNORE'
But, there's an even better way. I suggest you take a look at Proc::Daemon.
In Section
Seekers of Perl Wisdom
in reply to Understanding fork