]> git.lizzy.rs Git - rust.git/commit
std: Don't cache stdio handles on Windows
authorAlex Crichton <alex@alexcrichton.com>
Tue, 14 Mar 2017 05:27:12 +0000 (22:27 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 23 Mar 2017 14:22:48 +0000 (07:22 -0700)
commit5ca8a735ca36219abbf601624606c41148b95210
tree123992e3bb3d2051064c51478244dbdc072de7e8
parent90346eae18e83887517e096c17678a74838ff995
std: Don't cache stdio handles on Windows

This alters the stdio code on Windows to always call `GetStdHandle` whenever the
stdio read/write functions are called as this allows us to track changes to the
value over time (such as if a process calls `SetStdHandle` while it's running).

Closes #40490
src/libstd/sys/windows/process.rs
src/libstd/sys/windows/stdio.rs
src/test/run-pass-fulldeps/switch-stdout.rs [new file with mode: 0644]