diff --git a/src/io/seq_packet.rs b/src/io/seq_packet.rs index 0455348..68d968b 100644 --- a/src/io/seq_packet.rs +++ b/src/io/seq_packet.rs @@ -47,12 +47,7 @@ impl SeqPacketListener { let fd = self.as_raw_fd(); let res = self.fd.wrap_read(cx, || { c_result!(unsafe { - libc::accept4( - fd, - ptr::null_mut(), - ptr::null_mut(), - libc::SOCK_CLOEXEC | libc::SOCK_NONBLOCK, - ) + libc::accept4(fd, ptr::null_mut(), ptr::null_mut(), libc::SOCK_CLOEXEC) }) .map(|fd| unsafe { Fd::from_raw_fd(fd as RawFd) }) });