diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-01-12 07:05:22 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-01-12 07:05:22 +0000 |
commit | 246098effc519b8b44858207d2c587d9e24a5f98 (patch) | |
tree | d02b450782fe5b795a124c72bec5877735f66f5d /tools/libxl/libxl_exec.c | |
parent | 02bc3705910bcee69389e2948454ead894608277 (diff) | |
download | xen-246098effc519b8b44858207d2c587d9e24a5f98.tar.gz xen-246098effc519b8b44858207d2c587d9e24a5f98.tar.bz2 xen-246098effc519b8b44858207d2c587d9e24a5f98.zip |
libxenlight: remove ctx argument to exec
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_exec.c')
-rw-r--r-- | tools/libxl/libxl_exec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/libxl/libxl_exec.c b/tools/libxl/libxl_exec.c index 1588a1f547..011ed8452d 100644 --- a/tools/libxl/libxl_exec.c +++ b/tools/libxl/libxl_exec.c @@ -48,8 +48,7 @@ static int call_waitpid(pid_t (*waitpid_cb)(pid_t, int *, int), pid_t pid, int * return (waitpid_cb) ? waitpid_cb(pid, status, options) : waitpid(pid, status, options); } -void libxl_exec(struct libxl_ctx *ctx, int stdinfd, int stdoutfd, int stderrfd, - char *arg0, char **args) +void libxl_exec(int stdinfd, int stdoutfd, int stderrfd, char *arg0, char **args) /* call this in the child */ { int i; @@ -63,7 +62,6 @@ void libxl_exec(struct libxl_ctx *ctx, int stdinfd, int stdoutfd, int stderrfd, for (i = 4; i < 256; i++) close(i); execv(arg0, args); - XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "exec %s failed", arg0); _exit(-1); } |