You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when the binary is directly run, the output is
fileno: 0, isatty: 0
I'm not sure if this is expected or not, or if it's fixable from Rust rather than from the C implementation, but I thought I was worth checking just in case.
EDIT: I'm realizing this is more like caused by something in Cargo than libc, so there's probably nothing that can be done from here.
The text was updated successfully, but these errors were encountered:
Depending on whether a binary is run directly or with
cargo run
,isatty()
seems to give different results. For example, given the following code:When run with
cargo run
, the output isHowever, when the binary is directly run, the output is
I'm not sure if this is expected or not, or if it's fixable from Rust rather than from the C implementation, but I thought I was worth checking just in case.
EDIT: I'm realizing this is more like caused by something in Cargo than libc, so there's probably nothing that can be done from here.
The text was updated successfully, but these errors were encountered: