You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2016/04/22 15:03:48 UTC
mesos git commit: Passed argument by const-ref in command executor's
escalated().
Repository: mesos
Updated Branches:
refs/heads/master fa7ca953c -> c5c0386ae
Passed argument by const-ref in command executor's escalated().
Review: https://reviews.apache.org/r/46567/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c5c0386a
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c5c0386a
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c5c0386a
Branch: refs/heads/master
Commit: c5c0386aeb6d966a8e4eb362513ab80a07f20ef9
Parents: fa7ca95
Author: Alexander Rukletsov <ru...@gmail.com>
Authored: Fri Apr 22 15:01:59 2016 +0200
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Fri Apr 22 15:01:59 2016 +0200
----------------------------------------------------------------------
src/launcher/executor.cpp | 2 +-
src/launcher/http_command_executor.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/c5c0386a/src/launcher/executor.cpp
----------------------------------------------------------------------
diff --git a/src/launcher/executor.cpp b/src/launcher/executor.cpp
index bec9cba..9f1d216 100644
--- a/src/launcher/executor.cpp
+++ b/src/launcher/executor.cpp
@@ -664,7 +664,7 @@ private:
driver->stop();
}
- void escalated(Duration timeout)
+ void escalated(const Duration& timeout)
{
cout << "Process " << pid << " did not terminate after " << timeout
<< ", sending SIGKILL to process tree at " << pid << endl;
http://git-wip-us.apache.org/repos/asf/mesos/blob/c5c0386a/src/launcher/http_command_executor.cpp
----------------------------------------------------------------------
diff --git a/src/launcher/http_command_executor.cpp b/src/launcher/http_command_executor.cpp
index 9dfe481..2ce2967 100644
--- a/src/launcher/http_command_executor.cpp
+++ b/src/launcher/http_command_executor.cpp
@@ -740,7 +740,7 @@ private:
terminate(self());
}
- void escalated(Duration timeout)
+ void escalated(const Duration& timeout)
{
cout << "Process " << pid << " did not terminate after " << timeout
<< ", sending SIGKILL to process tree at " << pid << endl;