Chinaunix首页 | 论坛 | 博客
  • 博客访问: 590291
  • 博文数量: 150
  • 博客积分: 1132
  • 博客等级: 少尉
  • 技术积分: 2067
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-11 16:46
文章分类

全部博文(150)

文章存档

2015年(15)

2014年(75)

2013年(4)

2012年(56)

发布时间: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.........【阅读全文】

阅读(756) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册