如果execvp因找不到cmd而失敗,如何在父程序中注意到此錯誤? ... close(pipefds[1]); while ((count = read(pipefds[0], &err, sizeof(errno))) == -1) if (errno !=
確定! 回上一頁