linux之dup&dup2 【linux之dup&dup2】 参考:http://baodunqiao.blog.sohu.com/40220886.html 书籍:《Unix环境高级编程》- 第3章 - 12节