diff options
author | Stefano Stabellini <sstabellini@xensource.com> | 2010-07-19 12:22:25 +0100 |
---|---|---|
committer | Stefano Stabellini <sstabellini@xensource.com> | 2010-07-19 12:22:25 +0100 |
commit | 6b331584fb3e3a6848551748607cdecb981ac74c (patch) | |
tree | b93a9dd702250e4b60548a48f974ae0aaafe9ba7 /tools/libxl/libxl_exec.c | |
parent | 19ea926cbc9a462f72fb9e072019c3ff355af1c2 (diff) | |
download | xen-6b331584fb3e3a6848551748607cdecb981ac74c.tar.gz xen-6b331584fb3e3a6848551748607cdecb981ac74c.tar.bz2 xen-6b331584fb3e3a6848551748607cdecb981ac74c.zip |
execute command by execvp() so can search command in PATH.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.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 ddded06829..86dacd3883 100644 --- a/tools/libxl/libxl_exec.c +++ b/tools/libxl/libxl_exec.c @@ -53,7 +53,7 @@ void libxl_exec(int stdinfd, int stdoutfd, int stderrfd, char *arg0, char **args /* in case our caller set it to IGN. subprocesses are entitled * to assume they got DFL. */ - execv(arg0, args); + execvp(arg0, args); _exit(-1); } |