SignalExt.this

Constructor. Creates the internal signal event, handling the specified signals. The event (accessible via the event() method) must be registered with epoll.

The list of signals handled may be extended after construction by calling the register() method.

Note that the signals will be handled with a delay of up to single epoll cycle. This is because the signal extension is synced with the EpollSelectDispatcher. This makes it unsuitable to handle critical signals (like SIGABRT or SIGSEGV) where the application shouldn't be allowed to proceed in the general case; for these cases setup an asynchronous signal handler using sigaction instead.

class SignalExt
this
(
int[] signals
,
int[] ignore_signals = null
)

Parameters

signals int[]

list of signals to handle

ignore_signals int[]

list of signals to ignore

Throws

SignalErrnoException if setting up the signal handling fails

Meta