diff options
author | Olaf Hering <olaf@aepfle.de> | 2011-10-27 11:20:25 +0200 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2011-10-27 11:20:25 +0200 |
commit | b46dfd222ea6262b9e5f25cdbe433cb63562ecb8 (patch) | |
tree | 2c2b9e2f0b010bc615d07d18b90d0625a7f6b7ca /tools/libxl/libxl_exec.c | |
parent | e5d6417e8abc1047a273dc48b40a90d2b9c7f5c0 (diff) | |
download | xen-b46dfd222ea6262b9e5f25cdbe433cb63562ecb8.tar.gz xen-b46dfd222ea6262b9e5f25cdbe433cb63562ecb8.tar.bz2 xen-b46dfd222ea6262b9e5f25cdbe433cb63562ecb8.zip |
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@aepfle.de>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_exec.c')
-rw-r--r-- | tools/libxl/libxl_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_exec.c b/tools/libxl/libxl_exec.c index a91366ab2c..5021d28c27 100644 --- a/tools/libxl/libxl_exec.c +++ b/tools/libxl/libxl_exec.c @@ -151,7 +151,7 @@ void libxl_spawner_record_pid(void *for_spawn, pid_t innerchild) 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); |