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

perldoc perlipc
perldoc -f waitpid