You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/06/22 00:42:46 UTC

mesos git commit: Updated a CHECK in Subprocess to include the failure message.

Repository: mesos
Updated Branches:
  refs/heads/master b8d230990 -> c9a1bf6c2


Updated a CHECK in Subprocess to include the failure message.

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


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

Branch: refs/heads/master
Commit: c9a1bf6c20cd2117d944910602074d881bf0675d
Parents: b8d2309
Author: Benjamin Mahler <bm...@apache.org>
Authored: Tue Jun 21 17:35:17 2016 -0700
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Tue Jun 21 17:41:55 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/c9a1bf6c/3rdparty/libprocess/include/process/posix/subprocess.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/posix/subprocess.hpp b/3rdparty/libprocess/include/process/posix/subprocess.hpp
index 66efa25..a871fe4 100644
--- a/3rdparty/libprocess/include/process/posix/subprocess.hpp
+++ b/3rdparty/libprocess/include/process/posix/subprocess.hpp
@@ -24,6 +24,7 @@
 
 #include <process/subprocess.hpp>
 
+#include <stout/check.hpp>
 #include <stout/error.hpp>
 #include <stout/foreach.hpp>
 #include <stout/nothing.hpp>
@@ -362,7 +363,7 @@ inline Try<pid_t> cloneChild(
   if (blocking) {
     // We assume this should not fail under reasonable conditions so we
     // use CHECK.
-    CHECK_EQ(0, ::pipe(pipes));
+    CHECK_SOME(os::pipe(pipes));
   }
 
   // Now, clone the child process.