[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: add pid path to libxl__spawner_starting
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1319707225 -7200 # Node ID 3235ee6505cd79287cff69fda6b2aed60c31b58a # Parent d577f5ae4986a2c1f3c4fd89162284c72b52573c libxl: add pid path to libxl__spawner_starting libxl_spawner_record_pid() should be able to write the pid to arbitrary paths. v2: - use const char* for ->pid_path, and update comment Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> --- diff -r d577f5ae4986 -r 3235ee6505cd tools/libxl/libxl_dm.c --- a/tools/libxl/libxl_dm.c Thu Oct 27 11:19:22 2011 +0200 +++ b/tools/libxl/libxl_dm.c Thu Oct 27 11:20:25 2011 +0200 @@ -848,6 +848,7 @@ p->domid = info->domid; p->dom_path = libxl__xs_get_dompath(gc, info->domid); + p->pid_path = "image/device-model-pid"; if (!p->dom_path) { rc = ERROR_FAIL; goto out_close; diff -r d577f5ae4986 -r 3235ee6505cd tools/libxl/libxl_exec.c --- a/tools/libxl/libxl_exec.c Thu Oct 27 11:19:22 2011 +0200 +++ b/tools/libxl/libxl_exec.c Thu Oct 27 11:20:25 2011 +0200 @@ -151,7 +151,7 @@ char *path = NULL, *pid = NULL; int len; - if (asprintf(&path, "%s/%s", starting->dom_path, "image/device-model-pid") < 0) + if (asprintf(&path, "%s/%s", starting->dom_path, starting->pid_path) < 0) goto out; len = asprintf(&pid, "%d", innerchild); diff -r d577f5ae4986 -r 3235ee6505cd tools/libxl/libxl_internal.h --- a/tools/libxl/libxl_internal.h Thu Oct 27 11:19:22 2011 +0200 +++ b/tools/libxl/libxl_internal.h Thu Oct 27 11:20:25 2011 +0200 @@ -268,6 +268,7 @@ typedef struct { char *dom_path; /* from libxl_malloc, only for libxl_spawner_record_pid */ + const char *pid_path; /* only for libxl_spawner_record_pid */ int domid; libxl__spawn_starting *for_spawn; } libxl__spawner_starting; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |