From: Fredrik Tolf Date: Sat, 11 Sep 2010 04:03:50 +0000 (+0200) Subject: Honor jsvc.forcelimit. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=b9089d950e376b3f48c63e69c72a32d4efeba7b0;p=jsvc.git Honor jsvc.forcelimit. --- diff --git a/src/dolda/jsvc/ThreadContext.java b/src/dolda/jsvc/ThreadContext.java index d0e32fd..b6d9677 100644 --- a/src/dolda/jsvc/ThreadContext.java +++ b/src/dolda/jsvc/ThreadContext.java @@ -72,7 +72,10 @@ public class ThreadContext extends ThreadGroup { if(st.st == "killed") logger.log(Level.WARNING, "Thread " + rt + " refused to die; killing again"); if(now - st.lastkill > 5000) { - rt.stop(); + if(forcelimit) + rt.stop(); + else + rt.interrupt(); st.st = "killed"; st.lastkill = now; } else {