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 11:11:17 UTC

[2/4] 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/47392cf9
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/47392cf9
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/47392cf9

Branch: refs/heads/master
Commit: 47392cf9f9024718550c69bcef9319560b47d5c7
Parents: 44a702a
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:10:15 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/47392cf9/src/launcher/executor.cpp
----------------------------------------------------------------------
diff --git a/src/launcher/executor.cpp b/src/launcher/executor.cpp
index 31a4710..dd76c9f 100644
--- a/src/launcher/executor.cpp
+++ b/src/launcher/executor.cpp
@@ -765,6 +765,8 @@ protected:
     if (launched) {
       CHECK_SOME(taskId);
       kill(taskId.get(), gracePeriod);
+    } else {
+      terminate(self());
     }
   }