因为有waitpid函数,所以总是等待完子程序的exit(2)再打印WEXITSTATUS(status) hello 0 1 Bye 2 Bye hello 1 Bye 0 2 Bye hello 1 0 Bye 2 Bye