in reply to problems with fork

You need to daemonize the child process.
perlipc has a nice and easy to understand example of doing that : Complete Dissociation of Child from Parent

--perlplexer