diff -r 6e84854aecba tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java --- a/tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java Sun Aug 19 16:50:30 2012 +0200 +++ b/tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java Mon Aug 20 18:24:47 2012 +0200 @@ -166,18 +166,34 @@ Field f = p.getClass().getDeclaredField("pid"); f.setAccessible(true); String pid = (f.get(p)).toString(); - List ll=new ArrayList(4); - ll.add("kill"); - ll.add("-s"); - ll.add("SIGTERM"); - ll.add(pid); - ServerAccess.executeProcess(ll);//sync, but acctually release - //before affected application close - Thread.sleep(1000); + sigInt(pid); + //sigTerm(pid); + //sigKill(pid); } catch (Exception ex) { ServerAccess.logException(ex); } finally { p.destroy(); + } } + + public static void sigInt(String pid) throws InterruptedException, Exception { + kill(pid, "SIGINT"); + } + public static void sigKill(String pid) throws InterruptedException, Exception { + kill(pid, "SIGKILL"); + } + public static void sigTerm(String pid) throws InterruptedException, Exception { + kill(pid, "SIGTERM"); + } + public static void kill(String pid,String signal) throws InterruptedException, Exception { + List ll = new ArrayList(4); + ll.add("kill"); + ll.add("-s"); + ll.add(signal); + ll.add(pid); + ServerAccess.executeProcess(ll); //sync, but acctually release + //before affected application close + Thread.sleep(1000); + } }