• A
    std: Unconditionally close all file descriptors · eadc3bcd
    Alex Crichton 提交于
    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.
    eadc3bcd
fd.rs 2.2 KB