about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-03 15:44:14 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-10 01:03:38 -0700
commiteadc3bcd676277d72c211bde6c20f7036339fd84 (patch)
tree7ec781b484adac13c8b4ad3bbb676bb5383faa0e /src/libstd/sys/unix/stack_overflow.rs
parent33a2191d0b880242b3bf9a32477a6b432f931c80 (diff)
downloadrust-eadc3bcd676277d72c211bde6c20f7036339fd84.tar.gz
rust-eadc3bcd676277d72c211bde6c20f7036339fd84.zip
std: Unconditionally close all file descriptors
The logic for only closing file descriptors >= 3 was inherited from quite some
time ago and ends up meaning that some internal APIs are less consistent than
they should be. By unconditionally closing everything entering a `FileDesc` we
ensure that we're consistent in our behavior as well as robustly handling the
stdio case.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions