waitpid 会暂时停止进程的执行,直到有信号来到或子进程结束。 ... int status; childpid = fork(); if ( childpid < 0 ) { perror( "fork()" ); exit( EXIT_FAILURE ); ...
確定! 回上一頁