felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r1799675 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java
Date Fri, 23 Jun 2017 13:55:57 GMT
Author: pauls
Date: Fri Jun 23 13:55:57 2017
New Revision: 1799675

URL: http://svn.apache.org/viewvc?rev=1799675&view=rev
Log:
FELIX-5652: Force the resolver threads to be daemons so that they don't stop the jvm from
terminating.

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java?rev=1799675&r1=1799674&r2=1799675&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/StatefulResolver.java Fri
Jun 23 13:55:57 2017
@@ -156,7 +156,9 @@ class StatefulResolver
                         @Override
                         public Thread newThread(Runnable r)
                         {
-                            return new Thread(r, "FelixResolver-" + counter.incrementAndGet());
+                            Thread thread = new Thread(r, "FelixResolver-" + counter.incrementAndGet());
+                            thread.setDaemon(true);
+                            return thread;
                         }
                     });
             executor.allowCoreThreadTimeOut(true);



Mime
View raw message