From 4275498bbc69ab8eb7849b71f6e4683f71ed29eb Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 18 Jul 2022 11:17:30 +0200 Subject: [PATCH] Revert "seq_packet: set SOCK_NONBLOCK on accept" This reverts commit ff22261dde605a4826023c2bc4bdd19733d0e563. This causes issues with lxc blocking on recvmsg. --- src/io/seq_packet.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) }) });