-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
What does "before-main stdio file descriptors are not guaranteed to be open on unix platforms" mean? #137490
Comments
rust/library/std/src/sys/pal/unix/mod.rs Lines 36 to 39 in b522e7c
|
Thanks, this indicates what this should say instead. |
nabijaczleweli
added a commit
to nabijaczleweli/rust
that referenced
this issue
Feb 23, 2025
jieyouxu
added a commit
to jieyouxu/rust
that referenced
this issue
Mar 16, 2025
libstd: rustdoc: correct note on fds 0/1/2 pre-main Closes: rust-lang#137490
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 16, 2025
Rollup merge of rust-lang#137492 - nabijaczleweli:master, r=thomcc libstd: rustdoc: correct note on fds 0/1/2 pre-main Closes: rust-lang#137490
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this issue
Mar 19, 2025
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this issue
Mar 19, 2025
libstd: rustdoc: correct note on fds 0/1/2 pre-main Closes: rust-lang#137490
tautschnig
pushed a commit
to model-checking/verify-rust-std
that referenced
this issue
Mar 19, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Location
library/std/src/lib.rs, module-level rustdoc
Summary
What does this mean? I'm assuming this was supposed to be "before main, " since file descriptors are a property of the process at all times, but even then... this implies that fd0/1/2 may be... closed? between exec returning and the runtime calling main? and then become open somehow? on main entry? I don't believe there to be any UNIX system ever in history where this is true?
The text was updated successfully, but these errors were encountered: