deal SIGCHLD and system call interrupt.