in reply to problems with fork

If you want to fork, have a look at BrentDax's ForkBlock, in particular the phork subroutine which does a fork and retries temporary errors, to see how to do it.
IIRC, there is similar code in The Camel.

Cheers.

BazB.