Re: [PATCH] Allow System.exit to be called on shutdown [was Re: Shutdown.shdoes not work when long lasting operations, such as SQL Queries, are stillactive!

2003-02-11 Thread Tim Funk
Here is my jsp test case (again .. sigh) - I had to rename it to txt file so mozilla would attach it. -Tim <% Thread foreverThread = new Thread() { public void run() { for(int i=0;i<5000;i++){ System.out.println("Iteration: " + i); try { Thread.sleep

Re: [PATCH] Allow System.exit to be called on shutdown [was Re: Shutdown.shdoes not work when long lasting operations, such as SQL Queries, are stillactive!

2003-02-11 Thread Tim Funk
If a System.exit() was called - then it was an abnormal shutdown. The normal(good) shutdown occurs when all non-daemon threads peacefully quit and the JVM stops running. In this case - I have no idea what the exit code is. I wanted to be able to signify that System.exit was called. Since the st

[PATCH] Allow System.exit to be called on shutdown [was Re: Shutdown.shdoes not work when long lasting operations, such as SQL Queries, are stillactive!

2003-02-11 Thread Tim Funk
Here is the patch to StandardServer.java and LocalStrings.properties. Synopsis: New property: shutdownWait if greater than zero. Then to the end of shutdown, a new daemon thread is created which sleeps for {shutdownWait} seconds. When (and if) the Thread wakes back up, it prints to System.out(