From a38d99451f2bf8026ec51aee91662292e823c6a8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Feb 2015 11:44:48 +0100 Subject: Revert "tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC" This reverts commit d6d810fbf8071f8510450dbacd1d083f37603656. It's apparently not OK to pass MSG_CMSG_CLOEXEC to recvmsg() of raw sockets. --- src/machine/machine-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/machine/machine-dbus.c') diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c index da8e6c08e7..b46f0a8dac 100644 --- a/src/machine/machine-dbus.c +++ b/src/machine/machine-dbus.c @@ -255,7 +255,7 @@ int bus_machine_method_get_addresses(sd_bus *bus, sd_bus_message *message, void iov[0] = (struct iovec) { .iov_base = &family, .iov_len = sizeof(family) }; iov[1] = (struct iovec) { .iov_base = &in_addr, .iov_len = sizeof(in_addr) }; - n = recvmsg(pair[0], &mh, MSG_CMSG_CLOEXEC); + n = recvmsg(pair[0], &mh, 0); if (n < 0) return sd_bus_error_set_errno(error, -errno); if ((size_t) n < sizeof(family)) -- cgit v1.2.3-54-g00ecf