Open
Description
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 ?