发布时间:2014-12-04 22:22:58
int pipe(int pipefd[2]);用 pipe 创建一个管道。为什么在父子进程间使用管道需要关闭不必要的文件描述符?An application that uses pipe(2) and fork(2) should use suitable close(2) calls to close unnecessary duplicate file descriptors;this ensures that end-of-file and SIGPIPE/EPI.........【阅读全文】