You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/10/20 15:54:59 UTC

mesos git commit: Close socket after setting flags on the interface.

Repository: mesos
Updated Branches:
  refs/heads/master 09a1cd102 -> 6880a5f6c


Close socket after setting flags on the interface.

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


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

Branch: refs/heads/master
Commit: 6880a5f6c82aa5b535ebe2f1b86bad5ca338cb15
Parents: 09a1cd1
Author: Santhosh Kumar Shanmugham <sa...@gmail.com>
Authored: Thu Oct 20 08:54:52 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Thu Oct 20 08:54:52 2016 -0700

----------------------------------------------------------------------
 src/linux/routing/link/internal.hpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/6880a5f6/src/linux/routing/link/internal.hpp
----------------------------------------------------------------------
diff --git a/src/linux/routing/link/internal.hpp b/src/linux/routing/link/internal.hpp
index 551ffda..1206407 100644
--- a/src/linux/routing/link/internal.hpp
+++ b/src/linux/routing/link/internal.hpp
@@ -158,6 +158,7 @@ inline Try<bool> set(const std::string& _link, unsigned int flags)
     }
   }
 
+  os::close(fd);
   return true;
 }