Revert "tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC"

This reverts commit d6d810fbf8.

It's apparently not OK to pass MSG_CMSG_CLOEXEC to recvmsg() of raw
sockets.
This commit is contained in:
Lennart Poettering
2015-02-12 11:45:39 +01:00
parent d01efa0744
commit a38d99451f
9 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -892,7 +892,7 @@ int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret) {
mh.msg_control = &control;
mh.msg_controllen = sizeof(control);
l = recvmsg(fd, &mh, MSG_CMSG_CLOEXEC);
l = recvmsg(fd, &mh, 0);
if (l < 0) {
if (errno == EAGAIN || errno == EINTR)
return 0;