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 2017/11/20 00:54:13 UTC
[02/15] mesos git commit: Added a TODO for loop.
Added a TODO for loop.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a057048f
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a057048f
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/a057048f
Branch: refs/heads/master
Commit: a057048f150ec46bd4158a6348ec3fccce5bf5a0
Parents: bf9d1ae
Author: Benjamin Hindman <be...@gmail.com>
Authored: Fri Jan 6 21:53:44 2017 -0800
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Sun Nov 19 16:33:47 2017 -0800
----------------------------------------------------------------------
3rdparty/libprocess/include/process/loop.hpp | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/a057048f/3rdparty/libprocess/include/process/loop.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/loop.hpp b/3rdparty/libprocess/include/process/loop.hpp
index ff5013e..69d90f3 100644
--- a/3rdparty/libprocess/include/process/loop.hpp
+++ b/3rdparty/libprocess/include/process/loop.hpp
@@ -319,6 +319,10 @@ public:
dispatch(pid.get(), [self]() {
self->run(self->iterate());
});
+
+ // TODO(benh): Link with `pid` so that we can discard or abandon
+ // the promise in the event `pid` terminates and didn't discard
+ // us so that we can avoid any leaks (memory or otherwise).
} else {
run(iterate());
}