From b9089d950e376b3f48c63e69c72a32d4efeba7b0 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 11 Sep 2010 06:03:50 +0200 Subject: [PATCH] Honor jsvc.forcelimit. --- src/dolda/jsvc/ThreadContext.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.11.0