-
Notifications
You must be signed in to change notification settings - Fork 13k
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
io::stdin().read(buf) hangs when stdin is pipe on Linux #10237
Comments
This appears to not be our problem, but rather joyent/libuv#982. We'll need to update libuv once that gets fixed. |
Hm, nevermind, I need to keep investigating. |
Ah, narrowed it down, looks like that libuv bug |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 8, 2013
It appears that uv's support for interacting with a stdio stream as a tty when it's actually a pipe is pretty problematic. To get around this, promote a check to see if the stream is a tty to the top of the tty constructor, and bail out quickly if it's not identified as a tty. Closes rust-lang#10237
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jan 27, 2023
…sed_as_pow, r=Jarcho Fix styling in documentation for `suspicious_xor_used_as_pow` lint There was a tab after the three leading slashes which caused the contents of the "Why is this bad?" section to be rendered as a code block. **Before:** <img width="626" alt="master" src="https://user-images.githubusercontent.com/4869194/214985546-4433d211-9fd3-450c-8ff7-2c0a47fccdc0.png"> **After:** <img width="520" alt="fixed" src="https://user-images.githubusercontent.com/4869194/214985561-87255196-008c-4a1c-8cc8-c54b337d22a2.png"> The file still contains a lot of tabs but they don't affect the documentation. --- changelog: [`suspicious_xor_used_as_pow`]: Fix styling in documentation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rust stdlib hangs instead of reporting EOF when stdin is pipe.
Testing with script:
C program, does not hang, exits properly:
Rust program hangs on Linux, exits properly on OSX:
The text was updated successfully, but these errors were encountered: