mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:45:07 -05:00
socket: remove unnecessary MSG_DONTWAIT flag
This is not needed since sockets are non-blocking by default.
This commit is contained in:
2
socket.c
2
socket.c
@@ -819,7 +819,7 @@ receive_messages(int sock_fd, SCK_Message *messages, int max_messages, int flags
|
||||
recv_flags = get_recv_flags(flags);
|
||||
|
||||
#ifdef HAVE_RECVMMSG
|
||||
ret = recvmmsg(sock_fd, hdr, n, recv_flags | MSG_DONTWAIT, NULL);
|
||||
ret = recvmmsg(sock_fd, hdr, n, recv_flags, NULL);
|
||||
if (ret >= 0)
|
||||
n = ret;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user