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:
@@ -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());
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user