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/udev | |
parent | 332560792c6ef0b5c3d9719801b64d0d5f374639 (diff) |
tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udev-ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c index 538b342865..47f06510c8 100644 --- a/src/udev/udev-ctrl.c +++ b/src/udev/udev-ctrl.c @@ -372,7 +372,7 @@ struct udev_ctrl_msg *udev_ctrl_receive_msg(struct udev_ctrl_connection *conn) { iov.iov_base = &uctrl_msg->ctrl_msg_wire; iov.iov_len = sizeof(struct udev_ctrl_msg_wire); - size = recvmsg(conn->sock, &smsg, 0); + size = recvmsg(conn->sock, &smsg, MSG_CMSG_CLOEXEC); if (size < 0) { log_error_errno(errno, "unable to receive ctrl message: %m"); goto err; |