Capture SIGINT in Java
- by Begui
What is the best way to capture a kill signal in java without using JNI. I did discover the sun.misc.Signal and the sun.misc.SignalHandler and the warning of the possibility of being removed in the future releases.
Would using JNI to call a c lib be the only option i have?