xv6-chinese
xv6-chinese copied to clipboard
第0章管道里有错误
引用--“这就是为什么我们在执行 wc 之前要关闭子进程的写端口。如果 wc 指向了一个管道的写端口,那么 wc 就永远看不到 eof 了。”
这里看原文是“that it’s important for the child to close the write end of the pipe before executing wc above”
应该是“子进程关闭管道的写端口”,而不是“关闭子进程的写端口”。