chiark / gitweb /
units: turn on --network-veth by default for systemd-nspawn@.service
[elogind.git] / src / udev / udev-ctrl.c
index 47f06510c8ee9c8500a9e7f96f65bcdbcaebef69..7b5ef6b2a8e6fbfcd71659722cc8aeeeb6ac6a4b 100644 (file)
@@ -16,7 +16,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/types.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 
@@ -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, MSG_CMSG_CLOEXEC);
+        size = recvmsg(conn->sock, &smsg, 0);
         if (size <  0) {
                 log_error_errno(errno, "unable to receive ctrl message: %m");
                 goto err;