diff options
| author | Jack O'Connor <oconnor663@gmail.com> | 2019-10-11 14:23:25 -0400 |
|---|---|---|
| committer | Jack O'Connor <oconnor663@gmail.com> | 2019-10-11 14:23:25 -0400 |
| commit | 93ae6924af65f38b4998199c0da5ad75acde4466 (patch) | |
| tree | 5eb51a994592278c9b90fa7093f83aa77167b749 /src/libsyntax/parse/parser/path.rs | |
| parent | d4f7f974b83ce6795f29de13063132b4e211583d (diff) | |
| download | rust-93ae6924af65f38b4998199c0da5ad75acde4466.tar.gz rust-93ae6924af65f38b4998199c0da5ad75acde4466.zip | |
make File::try_clone produce non-inheritable handles on Windows
File handles shouldn't be inheritable in general. `std::process::Command` takes care of making them inheritable when child processes are spawned, and the `CREATE_PROCESS_LOCK` protects against races in that section on Windows. But `File::try_clone` has been creating inheritable file descriptors outside of that lock, which could be leaking into other child processes unintentionally. See also https://github.com/rust-lang/rust/pull/31069#discussion_r334117665.
Diffstat (limited to 'src/libsyntax/parse/parser/path.rs')
0 files changed, 0 insertions, 0 deletions
