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/libudev/libudev-monitor.c | |
parent | 332560792c6ef0b5c3d9719801b64d0d5f374639 (diff) | |
download | systemd-d6d810fbf8071f8510450dbacd1d083f37603656.tar.gz |
tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC
Diffstat (limited to 'src/libudev/libudev-monitor.c')
-rw-r--r-- | src/libudev/libudev-monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-monitor.c b/src/libudev/libudev-monitor.c index 08ddde8fd7..82ce7f67e3 100644 --- a/src/libudev/libudev-monitor.c +++ b/src/libudev/libudev-monitor.c @@ -600,7 +600,7 @@ retry: smsg.msg_name = &snl; smsg.msg_namelen = sizeof(snl); - buflen = recvmsg(udev_monitor->sock, &smsg, 0); + buflen = recvmsg(udev_monitor->sock, &smsg, MSG_CMSG_CLOEXEC); if (buflen < 0) { if (errno != EINTR) log_debug("unable to receive message"); |