Posted By:
Ankit_Doshi
Posted On:
Sunday, March 31, 2002 11:55 PM
I have added shutdown hook to my main program. But sometimes, pressing ^C doesnt call the shutdown hook at all.
My program listens for incoming connections on a particular socket and when a new connection is established, creates a new thread to process the request.
This behavior is not persistent. But once this happens, no matter how many times I press ^C, the shutdown hook wont be called. Then say I kill the process and then re run the program, this time it may call the thread on pressing ^C.
What might be the reason? I am using JDK1.3 on RedHat 7 system.
Ankit.