Blame SOURCES/hypervkvpd-0-cloexec_device_file.patch

1c9ae8
diff --git a/hv_kvp_daemon.c b/hv_kvp_daemon.c
1c9ae8
index 82fb565..123265d 100755
1c9ae8
--- a/hv_kvp_daemon.c
1c9ae8
+++ b/hv_kvp_daemon.c
1c9ae8
@@ -1430,7 +1430,7 @@ int main(int argc, char *argv[])
1c9ae8
 	openlog("KVP", 0, LOG_USER);
1c9ae8
 	syslog(LOG_INFO, "KVP starting; pid is:%d", getpid());
1c9ae8
 
1c9ae8
-	kvp_fd = open("/dev/vmbus/hv_kvp", O_RDWR);
1c9ae8
+	kvp_fd = open("/dev/vmbus/hv_kvp", O_RDWR | O_CLOEXEC);
1c9ae8
 
1c9ae8
 	if (kvp_fd < 0) {
1c9ae8
 		syslog(LOG_ERR, "open /dev/vmbus/hv_kvp failed; error: %d %s",