You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2014/01/25 01:14:48 UTC

[7/7] git commit: Bug in http::request missing os::close.

Bug in http::request missing os::close.

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


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

Branch: refs/heads/master
Commit: 73d8498feb72863cc09d3aba578f51fc6f3e45c2
Parents: c50784e
Author: Benjamin Hindman <be...@gmail.com>
Authored: Sat Jan 18 11:30:05 2014 -0800
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Fri Jan 24 16:14:02 2014 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/src/process.cpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/73d8498f/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp
index 6ebeb62..c28fc35 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -3635,6 +3635,7 @@ Future<Response> request(
 
   Try<Nothing> cloexec = os::cloexec(s);
   if (!cloexec.isSome()) {
+    os::close(s);
     return Failure("Failed to cloexec: " + cloexec.error());
   }