You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yoav Shapira <sh...@mpi.com> on 2002/02/21 16:06:02 UTC

I WANT System.exit(0) ;)

Hi,
So tomcat4.0.2 remove the System.exit(0) call at the end of the
Bootstrap class, and there are good reasons to not have it there
(for embedded invocations of tomcat, etc.).  I'm also aware
of the possible harm of System.exit(0) and the use of SecurityManager
to prevent that.

Here's my situation, though: I use 3rd party code that I trust but
cannot modify, and I think this code creates threads and does not
interrupt/kill them appropriately.  Therefore, when I shutdown 
tomcat, the tomcat process never dies.  It stays resident in memory
etc.  This is not acceptable for us, so we can't use tomcat4.0.2.

I know relying on System.exit(0) is not a good idea.  Does anyone
have other ideas, suggestions, etc on this issue?  All appreciated,
and thanks in advance,

Yoav

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>