rust/src/libstd/sys
Alex Crichton eadc3bcd67 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.
2015-04-10 01:03:38 -07:00
..
common Implement reentrant mutexes and make stdio use them 2015-04-08 19:42:16 +03:00
unix std: Unconditionally close all file descriptors 2015-04-10 01:03:38 -07:00
windows std: Unconditionally close all file descriptors 2015-04-10 01:03:38 -07:00