[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: libxl_qmp: use of libxl__fd_set_cloexec.



# HG changeset patch
# User Anthony PERARD <anthony.perard@xxxxxxxxxx>
# Date 1317310284 -3600
# Node ID e78cd03b0308c3ba5737ba9821bf7272f45549ca
# Parent  95a40ee93806f3c79ff05b18777bb20b2cea4c6f
libxl: libxl_qmp: use of libxl__fd_set_cloexec.

Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 95a40ee93806 -r e78cd03b0308 tools/libxl/libxl_qmp.c
--- a/tools/libxl/libxl_qmp.c   Thu Sep 29 16:30:54 2011 +0100
+++ b/tools/libxl/libxl_qmp.c   Thu Sep 29 16:31:24 2011 +0100
@@ -302,6 +302,7 @@
     if (fcntl(qmp->qmp_fd, F_SETFL, flags | O_NONBLOCK) == -1) {
         return -1;
     }
+    libxl__fd_set_cloexec(qmp->qmp_fd);
 
     memset(&qmp->addr, 0, sizeof (&qmp->addr));
     qmp->addr.sun_family = AF_UNIX;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.