src/windows/classes/java/lang/Terminator.java
Print this page
*** 51,67 ****
public void handle(Signal sig) {
Shutdown.exit(sig.getNumber() + 0200);
}
};
handler = sh;
try {
Signal.handle(new Signal("INT"), sh);
Signal.handle(new Signal("TERM"), sh);
} catch (IllegalArgumentException e) {
- // When -Xrs is specified the user is responsible for
- // ensuring that shutdown hooks are run by calling
- // System.exit()
}
}
static void teardown() {
/* The current sun.misc.Signal class does not support
--- 51,71 ----
public void handle(Signal sig) {
Shutdown.exit(sig.getNumber() + 0200);
}
};
handler = sh;
+
+ // When -Xrs is specified the user is responsible for
+ // ensuring that shutdown hooks are run by calling
+ // System.exit()
try {
Signal.handle(new Signal("INT"), sh);
+ } catch (IllegalArgumentException e) {
+ }
+ try {
Signal.handle(new Signal("TERM"), sh);
} catch (IllegalArgumentException e) {
}
}
static void teardown() {
/* The current sun.misc.Signal class does not support