From d6d810fbf8071f8510450dbacd1d083f37603656 Mon Sep 17 00:00:00 2001 From: Cristian Rodríguez Date: Tue, 10 Feb 2015 12:06:24 -0300 Subject: tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC --- src/shutdownd/shutdownd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shutdownd') diff --git a/src/shutdownd/shutdownd.c b/src/shutdownd/shutdownd.c index 826efbfeab..6eb522bcfc 100644 --- a/src/shutdownd/shutdownd.c +++ b/src/shutdownd/shutdownd.c @@ -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); + n = recvmsg(fd, &msghdr, MSG_DONTWAIT|MSG_CMSG_CLOEXEC); if (n <= 0) { if (n == 0) { log_error("Short read"); -- cgit v1.2.3-54-g00ecf