-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std: Remove final usage of fds from Windows #24426
Conversation
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
let mut reader = libc::INVALID_HANDLE_VALUE; | ||
let mut writer = libc::INVALID_HANDLE_VALUE; | ||
try!(cvt(unsafe { | ||
c::CreatePipe(&mut reader, &mut writer, 0 as *mut _, 1024) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I'd just set the buffer size to 0 to use the OS default.
Implementation looks good to me. |
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.
707647a
to
5e07329
Compare
Oh happy days! Especially nice to see the drop changes. @bors: r+ |
📌 Commit 5e07329 has been approved by |
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.
This commit removes the last remnants of file descriptors from the Windows
implementation of
std::sys
by usingCreatePipe
to create anonymous pipesinstead of the
pipe
shim provided in msvcrt.