updates to sigchld handler