xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libxl: execute command by execvp()
@ 2010-07-19 10:11 Yu Zhiguo
  2010-07-21  7:11 ` Yu Zhiguo
  0 siblings, 1 reply; 6+ messages in thread
From: Yu Zhiguo @ 2010-07-19 10:11 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com; +Cc: Ian Campbell

execute command by execvp() so can search command in PATH.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>

diff -r 12f0618400de -r da4c3756920e tools/libxl/libxl_exec.c
--- a/tools/libxl/libxl_exec.c	Fri Jul 16 13:54:44 2010 +0100
+++ b/tools/libxl/libxl_exec.c	Tue Jul 20 02:14:44 2010 +0800
@@ -53,7 +53,7 @@
     /* in case our caller set it to IGN.  subprocesses are entitled
      * to assume they got DFL. */
 
-    execv(arg0, args);
+    execvp(arg0, args);
     _exit(-1);
 }

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-22  8:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-19 10:11 [PATCH] libxl: execute command by execvp() Yu Zhiguo
2010-07-21  7:11 ` Yu Zhiguo
2010-07-21  8:29   ` Ian Campbell
2010-07-22  2:46     ` Yu Zhiguo
2010-07-22  8:34       ` Ian Campbell
2010-07-21 11:59   ` Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).