@Override
        public void handle(final sun.misc.Signal signal) {
            try {
                if (!this.target.equals(signal)) {
                    return;
                }

                LOG.info("Handling signal {}.", signal);

                for (final JRaftSignalHandler h : this.handlers) {
                    h.handle(signal.getName());
                }
            } catch (final Throwable t) {
                LOG.error("Fail to handle signal: {}.", signal, t);
            }
        }
Registers user signal handlers.

@param signalName a signal name
@param handlers   user signal handlers
@return true if support on current platform
jraft-core/src/main/java/com/alipay/sofa/jraft/util/SignalHelper.java