]> git.lizzy.rs Git - rust.git/commit
std: Push process stdio setup in std::sys
authorAlex Crichton <alex@alexcrichton.com>
Thu, 4 Feb 2016 19:10:37 +0000 (11:10 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 10 Feb 2016 17:28:48 +0000 (09:28 -0800)
commitd15db1d392c9126ed5cc766753f08540c08a3626
tree658ca3a080bba616aaeabe4194be4125d78c4737
parent18f9a79c23da8e8920e4c944656b9945f3544337
std: Push process stdio setup in std::sys

Most of this is platform-specific anyway, and we generally have to jump through
fewer hoops to do the equivalent operation on Windows. One benefit for Windows
today is that this new structure avoids an extra `DuplicateHandle` when creating
pipes. For Unix, however, the behavior should be the same.

Note that this is just a pure refactoring, no functionality was added or
removed.
src/libstd/process.rs
src/libstd/sys/unix/ext/process.rs
src/libstd/sys/unix/pipe.rs
src/libstd/sys/unix/process.rs
src/libstd/sys/windows/ext/process.rs
src/libstd/sys/windows/pipe.rs
src/libstd/sys/windows/process.rs