|
From: Qian W. <jan...@ya...> - 2005-08-10 05:21:31
|
Geetings, y'all, I have a question about the stopping the service while rebooting the mahine. My own shutting down method sleep for 10 sec, then continue to clean my working threads and other stuff. I used stopsignale(12000) in wrapper's mail class to have it wait for 12 seconds, however, I don't think it can actually wait that long, therefore my threads can't be shutdown properly. I've tried to use a smaller number to sleep my shutdown method, then it works fine. My guess is my machine gets shutdown before wrapper do its job. How do I make wrapper wait for as long as I want? thanks a lot! ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs |