Need to check if the std{in,err,out} file descriptors status #108139
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Hello,
I was faced with a difficulty earlier today as I needed to port an application whose behaviour depends upon the status of those three file descriptors.
I have tracked the issue down to the following function :
rust/library/std/src/sys/unix/mod.rs
Lines 81 to 133 in 247e44e
I am of the opinion that, even if the std library needs to reopen those descriptors, we should be able to get an indication that those are not the original ones. Maybe through some kind of booleans or a dedicated structure?
Related: #47271
This has also affected the uutils project.
Any hope this will get fixed ?
The text was updated successfully, but these errors were encountered: