]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #9138 : alexcrichton/rust/dynamic-lib-not-threadsafe, r=thestinger
authorbors <bors@rust-lang.org>
Thu, 12 Sep 2013 08:16:08 +0000 (01:16 -0700)
committerbors <bors@rust-lang.org>
Thu, 12 Sep 2013 08:16:08 +0000 (01:16 -0700)
The library isn't thread-safe, cc #9137

src/libstd/rt/io/net/tcp.rs

index 9f8b680b83f77f154268310c4a2928aade59d265..be8a051a0664d94165479a007d31cb1b95cdc19b 100644 (file)
@@ -93,7 +93,7 @@ fn write(&mut self, buf: &[u8]) {
         }
     }
 
-    fn flush(&mut self) { fail!() }
+    fn flush(&mut self) { /* no-op */ }
 }
 
 pub struct TcpListener(~RtioTcpListenerObject);