Class NativeSignalHandler

java.lang.Object
org.aesh.terminal.tty.impl.NativeSignalHandler
All Implemented Interfaces:
Terminal.SignalHandler

public final class NativeSignalHandler extends Object implements Terminal.SignalHandler
Native signal handler implementation that provides default and ignore signal handling. This class provides two singleton instances: SIG_DFL for default signal handling and SIG_IGN for ignoring signals.
  • Field Details

    • SIG_DFL

      public static final NativeSignalHandler SIG_DFL
      Default signal handler that performs the default action for the signal.
    • SIG_IGN

      public static final NativeSignalHandler SIG_IGN
      Signal handler that ignores the signal.
  • Method Details

    • handle

      public void handle(Signal signal)
      Handles the given signal. This implementation throws UnsupportedOperationException as actual handling is performed by the native signal mechanism.
      Specified by:
      handle in interface Terminal.SignalHandler
      Parameters:
      signal - the signal to handle
      Throws:
      UnsupportedOperationException - always thrown by this implementation