chiark / gitweb /
NEWS: fix typo
[elogind.git] / src / shutdownd / shutdownd.c
index 6eb522bcfceed559d67f7d5da297044aaa6cf5ab..701882b96d58da442077c825babb3d63e1c031ad 100644 (file)
@@ -20,7 +20,7 @@
 ***/
 
 #include <sys/socket.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/types.h>
 #include <sys/timerfd.h>
 #include <assert.h>
@@ -69,7 +69,7 @@ static int read_packet(int fd, union shutdown_buffer *_b) {
         assert(fd >= 0);
         assert(_b);
 
-        n = recvmsg(fd, &msghdr, MSG_DONTWAIT|MSG_CMSG_CLOEXEC);
+        n = recvmsg(fd, &msghdr, MSG_DONTWAIT);
         if (n <= 0) {
                 if (n == 0) {
                         log_error("Short read");