diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-03 15:44:14 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-10 01:03:38 -0700 |
| commit | eadc3bcd676277d72c211bde6c20f7036339fd84 (patch) | |
| tree | 7ec781b484adac13c8b4ad3bbb676bb5383faa0e /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 33a2191d0b880242b3bf9a32477a6b432f931c80 (diff) | |
| download | rust-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
