但這種解法太智障了,其實還有另外一種做法,就是用waitpid替代wait ... "OOXX", NULL); exit(1); default: waitpid(cpid, &status, WNOHANG); if(WIFEXITED(status)) ...
確定! 回上一頁