finish multi-process
add signal handler to handle SIGCHLD