public interface SignalHandler
Modifier and Type | Field and Description |
---|---|
static int |
SIGINT
Usually caused when Ctrl-C is pressed.
|
static int |
SIGTERM
Usually caused when OS requests program termination.
|
Modifier and Type | Method and Description |
---|---|
void |
handleSignal(int signal)
Called when the signal is trapped by the OS.
|
void |
installed(int forSignal,
SignalHandler oldHandler)
Called when the SignalHandler is installed.
|
static final int SIGINT
static final int SIGTERM
void handleSignal(int signal)
signal
- the signal that was trapped.
You can call eve.sys.Vm.handleSignal(int signal) to
tell the VM to do the default signal handling for the
specified signal.void installed(int forSignal, SignalHandler oldHandler)
forSignal
- the signal it is installed for.oldHandler
- the old SignalHandler for that signal.