code: public static void registerJStormSignalHandler() {
          if (!OSInfo.isLinux()) {
              LOG.info("Skip register signal for current OS");
              return;
          }
  
          JStormSignalHandler instance = JStormSignalHandler.getInstance();
          int[] signals = {
                  1, //SIGHUP
                  2, //SIGINT
                  //3, //Signal already used by VM or OS: SIGQUIT
                  //4, //Signal already used by VM or OS: SIGILL
                  5, //SIGTRAP
                  6, //SIGABRT
                  7, // SIGBUS
                  //8, //Signal already used by VM or OS: SIGFPE
                  //10, //Signal already used by VM or OS: SIGUSR1
                  //11, Signal already used by VM or OS: SIGSEGV
                  12, //SIGUSER2
                  14, //SIGALM
                  16, //SIGSTKFLT
          };
  
  
          for (int signal : signals) {
              instance.registerSignal(signal, null, true);
          }
  
      }
docs: NOTE: DO NOT use Hook signal in JVM, it may cause JVM to exit