println!() does not panic when STDOUT returns ENOSPC #78753
Labels
A-io
Area: `std::io`, `std::fs`, `std::net` and `std::path`
C-bug
Category: This is a bug.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
I tried this code:
running it as
cargo run > /dev/full
or equivalent.I expected to see this happen: as STDOUT is now "full" and
write()
syscall returns ENOSPC,println!()
should panic, as per documentation.Instead, this happened:
println!()
silently did nothing. Process returned 0 exit code.Meta
Bug happens on stable, but is (probably) fixed on nightly
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: