adjust indent;add signal function for SIGCHLD