karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject [05/11] git commit: [KARAF-2687] Better thread names for threads started from main
Date Tue, 01 Apr 2014 11:43:38 GMT
[KARAF-2687] Better thread names for threads started from main


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

Branch: refs/heads/master
Commit: cc94e84fc31f0f7f16253329c72046fa2b722061
Parents: f692ea2
Author: Guillaume Nodet <gnodet@gmail.com>
Authored: Mon Mar 31 22:52:03 2014 +0200
Committer: Guillaume Nodet <gnodet@gmail.com>
Committed: Tue Apr 1 10:14:57 2014 +0200

----------------------------------------------------------------------
 main/src/main/java/org/apache/karaf/main/Main.java                 | 2 +-
 main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/cc94e84f/main/src/main/java/org/apache/karaf/main/Main.java
----------------------------------------------------------------------
diff --git a/main/src/main/java/org/apache/karaf/main/Main.java b/main/src/main/java/org/apache/karaf/main/Main.java
index 313eea2..855e1c1 100644
--- a/main/src/main/java/org/apache/karaf/main/Main.java
+++ b/main/src/main/java/org/apache/karaf/main/Main.java
@@ -294,7 +294,7 @@ public class Main {
     }
 
     private void monitor() {
-        new Thread() {
+        new Thread("Karaf Lock Monitor Thread") {
             public void run() {
                 doMonitor();
             }

http://git-wip-us.apache.org/repos/asf/karaf/blob/cc94e84f/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
----------------------------------------------------------------------
diff --git a/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java b/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
index a0d3798..10ef8af 100644
--- a/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
+++ b/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
@@ -39,6 +39,7 @@ class ShutdownSocketThread extends Thread {
 	private Framework framework;
 
     public ShutdownSocketThread(String shutdown, ServerSocket shutdownSocket, Framework framework)
{
+        super("Karaf Shutdown Socket Thread");
 		this.shutdown = shutdown;
 		this.shutdownSocket = shutdownSocket;
 		this.framework = framework;


Mime
View raw message