in reply to Nested forks -help!

For a nice simple way to take care of your forks, and most of the problems assocated, unless you absolutely have to write them yourself/are so familiar with them that you don't get caught by the many gotchas that happen, try using Proc::Simple from CPAN.
This will let you concentrate more on the functionality of the code than the workings of the fork.

Malk