Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第0章 管道 #68

Open
ztss opened this issue Sep 11, 2019 · 0 comments
Open

第0章 管道 #68

ztss opened this issue Sep 11, 2019 · 0 comments

Comments

@ztss
Copy link

ztss commented Sep 11, 2019

“读操作会一直阻塞直到不可能再有新数据到来了,这就是为什么我们在执行 wc 之前要关闭子进程的写端口"
按照原文的
"The fact that read blocks until it is impossible for new data to arrive is one reason that it’s important for the child to close the write end of the pipe before executing wc above: if one of wc’s file descriptors referred to the write end of the pipe, wc would never see end-of-file. "
应该改为"这就是为什么我们在执行"wc"之前要关闭管道的写端口。"这样不会出现理解错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant