src/solaris/classes/java/lang/Terminator.java

Print this page

        

*** 53,63 **** --- 53,75 ---- } }; handler = sh; try { Signal.handle(new Signal("HUP"), sh); + } catch (IllegalArgumentException e) { + // 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) { + // When -Xrs is specified the user is responsible for + // ensuring that shutdown hooks are run by calling + // System.exit() + } + try { 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()