in reply to how to avoid a <defunct> process?
perldoc perlipc [download]
perldoc -f waitpid [download]