You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/03/11 18:05:22 UTC

[8/8] mesos git commit: Windows: [3/3] Transitioned Windows `system` to use `os::execlp`.

Windows: [3/3] Transitioned Windows `system` to use `os::execlp`.

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


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

Branch: refs/heads/master
Commit: ace12c09786921665cde457d936f00a46ecd74ee
Parents: 81e893d
Author: Alex Clemmer <cl...@gmail.com>
Authored: Fri Mar 11 11:29:40 2016 -0500
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Fri Mar 11 12:04:51 2016 -0500

----------------------------------------------------------------------
 .../libprocess/3rdparty/stout/include/stout/os/windows/shell.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/ace12c09/3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/shell.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/shell.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/shell.hpp
index 3dbe624..18a9784 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/shell.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/shell.hpp
@@ -48,8 +48,8 @@ Try<std::string> shell(const std::string& fmt, const T... t)
 // return -1 on error
 inline int system(const std::string& command)
 {
-  return ::_spawnl(
-      _P_WAIT, Shell::name, Shell::arg0, Shell::arg1, command.c_str());
+  return ::_spawnlp(
+      _P_WAIT, Shell::name, Shell::arg0, Shell::arg1, command.c_str(), NULL);
 }
 
 template<typename... T>