mirror of
https://github.com/rust-lang/rust
synced 2024-10-01 06:14:33 +00:00
Fix bind address in process-termination-blocking-io test
This commit is contained in:
parent
2e749a5ecd
commit
2b3adc9b94
|
@ -9,7 +9,7 @@
|
|||
fn main() {
|
||||
let (tx, rx) = mpsc::channel();
|
||||
thread::spawn(move || {
|
||||
let listen = TcpListener::bind("0:0").unwrap();
|
||||
let listen = TcpListener::bind("0.0.0.0:0").unwrap();
|
||||
tx.send(()).unwrap();
|
||||
while let Ok(_) = listen.accept() {}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue