aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_qmp.c
diff options
context:
space:
mode:
authorAnthony Perard <anthony.perard@citrix.com>2011-12-01 16:28:51 +0000
committerAnthony Perard <anthony.perard@citrix.com>2011-12-01 16:28:51 +0000
commit943730ecffa8807ebb5c47f01a686e021f3c0390 (patch)
tree66e5b8bea2d66a8d16d90024f8e05ce7641bb86b /tools/libxl/libxl_qmp.c
parentca3a3fefd27cc398b5a08c865d7cb16628f388fb (diff)
downloadxen-943730ecffa8807ebb5c47f01a686e021f3c0390.tar.gz
xen-943730ecffa8807ebb5c47f01a686e021f3c0390.tar.bz2
xen-943730ecffa8807ebb5c47f01a686e021f3c0390.zip
xl: Apply CLOEXEC to the restore_fd.
At restore time, the file descriptor opened on the migration state file is still open in the device model. Let's apply FD_CLOEXEC to it. This patch provides libxl_fd_set_cloexec to users of libxl, instead of keeping this function internal. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_qmp.c')
-rw-r--r--tools/libxl/libxl_qmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c
index f749e011ba..66a013435e 100644
--- a/tools/libxl/libxl_qmp.c
+++ b/tools/libxl/libxl_qmp.c
@@ -324,7 +324,7 @@ static int qmp_open(libxl__qmp_handler *qmp, const char *qmp_socket_path,
if (fcntl(qmp->qmp_fd, F_SETFL, flags | O_NONBLOCK) == -1) {
return -1;
}
- libxl__fd_set_cloexec(qmp->qmp_fd);
+ libxl_fd_set_cloexec(qmp->qmp_fd);
memset(&qmp->addr, 0, sizeof (&qmp->addr));
qmp->addr.sun_family = AF_UNIX;