-
Notifications
You must be signed in to change notification settings - Fork 744
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
poll.poll may return non readable events despite the only registered interest being for readables #1855
Comments
Stdout isn't usually opened for reading, can you reproduce this on a handle/socket that can actually be used for reading? Also the |
It's the stdout of the subprocess. So it is to be used for reading.
I didn't copy/paste, so it's just a typo. |
Isn't this just "spurious events are possible"?
Readable interest is used to signal that EOF has arrived, so that's normal. |
Indefinitely? (repolling after getting Ok(0) still returns a readable event ; that only happens on Windows) |
I'm not sure, it could very well be a bug in Mio's NamedPipe code, but at the moment we don't really have a Windows expert to figure it out, we have some more issues in this area (https://github.com/tokio-rs/mio/issues?q=is%3Aissue+is%3Aopen+named+pipe), but no one to fix them :( |
Here is a reproducer:
The
dbg
prints:The text was updated successfully, but these errors were encountered: