> From: news [mailto:n...@ger.gmane.org] On Behalf Of Bill Barker > Subject: Re: Tomcat really need Shutdown port > > On Windows, you need the shutdown port (so that anybody with physical > access to the machine can shutdown the service by using the scripts).
The above seems to conflict with the results of my experiments running 6.0.20 as a service on Vista 64. > This is because tomcatN.exe doesn't keep a thread alive on it's own > after starting Tomcat, so there are no non-daemon threads left and > Tomcat shuts down. That's not the behavior I observed, nor is it reflected in the code. There's a check for port == -1 in StandardServer.await() that repeatedly sleeps for 10 seconds waiting for a stop flag to be set. Setting the port to -2 causes an immediate return from the await() method, while any other value attempts to acquire a socket for the specified port. The original thread from tomcat6.exe does appear to have exited, although its Thread object is still around. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org