Skip to content

Instantly share code, notes, and snippets.

@snaury
Created December 15, 2012 16:43
Show Gist options
  • Save snaury/4296970 to your computer and use it in GitHub Desktop.
Save snaury/4296970 to your computer and use it in GitHub Desktop.
Crash java using sun.misc.SignalHandler.
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