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

Print this page

        

@@ -53,11 +53,23 @@
             }
         };
         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()