in reply to how to avoid a <defunct> process?

perlipc should give you all the help you need; and if you want to disregard the forked children signal then set
$SIG{CHLD} = 'IGNORE';
Tiago