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 2017/12/22 13:48:35 UTC

[2/6] mesos git commit: Ensured command executor always honors shutdown request.

Ensured command executor always honors shutdown request.

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


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

Branch: refs/heads/1.4.x
Commit: 1bc8f5dcf761a5c54fa1777a76ba4b1f77b9c521
Parents: 2e7a772
Author: Alexander Rukletsov <ru...@gmail.com>
Authored: Fri Dec 22 12:10:15 2017 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Fri Dec 22 12:29:38 2017 +0100

----------------------------------------------------------------------
 src/launcher/executor.cpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/1bc8f5dc/src/launcher/executor.cpp
----------------------------------------------------------------------
diff --git a/src/launcher/executor.cpp b/src/launcher/executor.cpp
index 12b0326..e5d5595 100644
--- a/src/launcher/executor.cpp
+++ b/src/launcher/executor.cpp
@@ -760,6 +760,8 @@ protected:
     if (launched) {
       CHECK_SOME(taskId);
       kill(taskId.get(), gracePeriod);
+    } else {
+      terminate(self());
     }
   }