Fix sigchld handler