Catch Signals in Java
Reflections & Reference Objects – Ctrl C signal
If you want to trap handle the Ctrl C and other signals, use the undocumented, Sun JVM-specific, sun.misc.Signal and sun.misc.SignalHandler classes. You can get the full source in the SCSL Source Code.
KEYWORDS: shutdownhook
Permalink Comments off