Created
December 15, 2012 16:43
-
-
Save snaury/4296970 to your computer and use it in GitHub Desktop.
Crash java using sun.misc.SignalHandler.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sun.misc.*; | |
public class CrashSignal { | |
public static void main(String[] args) { | |
Signal signal = new Signal("INT"); | |
SignalHandler signalHandler = SignalHandler.SIG_IGN; | |
signalHandler.handle(signal); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment