addSignalHandler

The function sets the handler for the signal number.

void
addSignalHandler
(
S
H
)
(
S sig
,)
if (
(
is(S == Signal) ||
is(S : int)
)
&&
(
is(H == c_sigfn_t) ||
||
)
)

Parameters

sig S

signal number of Signal or int-like type

handler H

signal handler of c_sigfn_t or d_sigfn_t type

Meta