SignalFD.register

Adds the specified signal to the set of signals handled by this fd. The normal signal handling for the specified signal is optionally masked.

class SignalFD
typeof(this)
register
(
int signal
,
bool mask = true
)

Parameters

signal int

signal to register

mask bool

if true, default signal handling of the specified signal will be masked

Return Value

Type: typeof(this)

this instance for chaining

Throws

SignalErrnoException if the creation of the signalfd fails

Meta