You are viewing a plain text version of this content. The canonical link for it is here.
Posted to s4-commits@incubator.apache.org by mm...@apache.org on 2012/07/12 13:31:07 UTC

[2/3] git commit: Explicit shutdown

Explicit shutdown


Project: http://git-wip-us.apache.org/repos/asf/incubator-s4/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s4/commit/b1c984f0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s4/tree/b1c984f0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s4/diff/b1c984f0

Branch: refs/heads/piper
Commit: b1c984f0a7f0d782b0e1c886c2c97d6975c31807
Parents: 341f4bf
Author: Daniel Gómez Ferro <dg...@yahoo.es>
Authored: Thu Jul 12 09:44:27 2012 +0200
Committer: Matthieu Morel <mm...@apache.org>
Committed: Thu Jul 12 15:22:15 2012 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/s4/tools/Tools.java   |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/b1c984f0/subprojects/s4-tools/src/main/java/org/apache/s4/tools/Tools.java
----------------------------------------------------------------------
diff --git a/subprojects/s4-tools/src/main/java/org/apache/s4/tools/Tools.java b/subprojects/s4-tools/src/main/java/org/apache/s4/tools/Tools.java
index 4391a49..114a4e9 100644
--- a/subprojects/s4-tools/src/main/java/org/apache/s4/tools/Tools.java
+++ b/subprojects/s4-tools/src/main/java/org/apache/s4/tools/Tools.java
@@ -75,6 +75,8 @@ public class Tools {
         }
         task.dispatch(taskArgs.toArray(new String[] {}));
 
+        // Explicitly shutdown the JVM since Gradle leaves non-daemon threads running that delay the termination
+        System.exit(0);
     }
 
     private static List<String> getTaskNames() {