Bug fix in SIGCHLD