Proper handling of sigchld.