diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-07-15 12:42:40 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-08-24 17:08:14 -0700 |
| commit | fd763a5b1e736df39d878b888b1bf14f2009672c (patch) | |
| tree | 5bcae6049440cb543eec5ae46f0d7f7d7491bc60 /src/libstd/io/net/unix.rs | |
| parent | c301db20a40d63ee330956a97102c3e566475f75 (diff) | |
| download | rust-fd763a5b1e736df39d878b888b1bf14f2009672c.tar.gz rust-fd763a5b1e736df39d878b888b1bf14f2009672c.zip | |
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
Diffstat (limited to 'src/libstd/io/net/unix.rs')
| -rw-r--r-- | src/libstd/io/net/unix.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/io/net/unix.rs b/src/libstd/io/net/unix.rs index 74f024a844e..3bd31c6a839 100644 --- a/src/libstd/io/net/unix.rs +++ b/src/libstd/io/net/unix.rs @@ -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()); }) |
