native: clone/close_accept for win32 pipes

This commits takes a similar strategy to the previous commit to implement
close_accept and clone for the native win32 pipes implementation.

Closes #15595
This commit is contained in:
Alex Crichton
2014-07-15 12:42:40 -07:00
parent c301db20a4
commit fd763a5b1e
10 changed files with 117 additions and 48 deletions

View File

@@ -731,6 +731,7 @@ mod tests {
rx2.recv();
})
#[cfg(not(windows))]
iotest!(fn clone_accept_smoke() {
let addr = next_test_unix();
let l = UnixListener::bind(&addr);
@@ -746,6 +747,7 @@ mod tests {
});
assert!(a.accept().is_ok());
drop(a);
assert!(a2.accept().is_ok());
})