about summary refs log tree commit diff
path: root/src/libstd/sys/windows/process2.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-14 11:17:47 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-14 13:50:45 -0700
commit5e073293064a227ebf454053c8aa35d7d8bdcf52 (patch)
treec47ddec7819815ebf4385a7dcab6a7f52f204b8c /src/libstd/sys/windows/process2.rs
parentdabf0c6371d3b193664f58746fa27c1835a010f3 (diff)
downloadrust-5e073293064a227ebf454053c8aa35d7d8bdcf52.tar.gz
rust-5e073293064a227ebf454053c8aa35d7d8bdcf52.zip
std: Remove final usage of fds from Windows
This commit removes the last remnants of file descriptors from the Windows
implementation of `std::sys` by using `CreatePipe` to create anonymous pipes
instead of the `pipe` shim provided in msvcrt.
Diffstat (limited to 'src/libstd/sys/windows/process2.rs')
-rw-r--r--src/libstd/sys/windows/process2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/process2.rs b/src/libstd/sys/windows/process2.rs
index 74953921921..fdb47eb8c80 100644
--- a/src/libstd/sys/windows/process2.rs
+++ b/src/libstd/sys/windows/process2.rs
@@ -199,7 +199,7 @@ impl Process {
                         }
                     }
                     Stdio::Piped(ref pipe) => {
-                        let orig = pipe.raw();
+                        let orig = pipe.handle().raw();
                         if DuplicateHandle(cur_proc, orig, cur_proc, slot,
                                            0, TRUE, DUPLICATE_SAME_ACCESS) == FALSE {
                             return Err(Error::last_os_error())