diff options
author | Cristian RodrÃguez <crrodriguez@opensuse.org> | 2015-02-10 12:06:24 -0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-02-10 21:20:16 +0100 |
commit | d6d810fbf8071f8510450dbacd1d083f37603656 (patch) | |
tree | 46b41b077868b01b939f37912663108a2193a694 /src/machine | |
parent | 332560792c6ef0b5c3d9719801b64d0d5f374639 (diff) |
tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machine-dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c index b46f0a8dac..da8e6c08e7 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, 0); + n = recvmsg(pair[0], &mh, MSG_CMSG_CLOEXEC); if (n < 0) return sd_bus_error_set_errno(error, -errno); if ((size_t) n < sizeof(family)) |