Used execlp instead of execl to exec processes in libprocess.

Review: https://reviews.apache.org/r/37546


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d7d3b521
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d7d3b521
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d7d3b521

Branch: refs/heads/master
Commit: d7d3b52122613f536bcffe41a5f26132e99728af
Parents: e70493a
Author: Jie Yu <[email protected]>
Authored: Mon Aug 17 12:47:41 2015 -0700
Committer: Jie Yu <[email protected]>
Committed: Mon Aug 17 14:27:30 2015 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/subprocess.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d7d3b521/3rdparty/libprocess/include/process/subprocess.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/subprocess.hpp 
b/3rdparty/libprocess/include/process/subprocess.hpp
index 310cb4f..d2341a5 100644
--- a/3rdparty/libprocess/include/process/subprocess.hpp
+++ b/3rdparty/libprocess/include/process/subprocess.hpp
@@ -276,7 +276,7 @@ inline Try<Subprocess> subprocess(
   std::vector<std::string> argv = {"sh", "-c", command};
 
   return subprocess(
-      "/bin/sh",
+      "sh",
       argv,
       in,
       out,

Reply via email to