第一次用博客园,昨晚编辑器一直没打开,今天打开了,把昨天的内容先补一下
关于parent和child之间的数据传输:
If the parent wants to receive data from the child, it should close fd1, and the child should close fd0.
If the parent wants to send data to the child, it should close fd0, and the child should close fd1.
关于fork():
http://www.cnblogs.com/bastard/archive/2012/08/31/2664896.html
主要参考了这篇文章,周末编辑整理
Sep15, 2016, Fredonia