Package org.aesh.terminal.tty.impl
Class NativeSignalHandler
java.lang.Object
org.aesh.terminal.tty.impl.NativeSignalHandler
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final NativeSignalHandlerDefault signal handler that performs the default action for the signal.static final NativeSignalHandlerSignal handler that ignores the signal. -
Method Summary
-
Field Details
-
SIG_DFL
Default signal handler that performs the default action for the signal. -
SIG_IGN
Signal handler that ignores the signal.
-
-
Method Details
-
handle
Handles the given signal. This implementation throws UnsupportedOperationException as actual handling is performed by the native signal mechanism.- Specified by:
handlein interfaceTerminal.SignalHandler- Parameters:
signal- the signal to handle- Throws:
UnsupportedOperationException- always thrown by this implementation
-