module Signal: Signal
include Module_type.Signal
val handle : ?stop:unit Import.Deferred.t -> t list -> f:(t -> unit) -> unit
handle ?stop signals ~f
runs f
on each signal in signals
that is delivered,
stopping when stop
becomes determined. Calling handle
has the side-effect of
installing a C signal handler for every signal in signals
, which will replace the
existing C signal handler for that signal.val standard : t list
standard
is a list of signals that are reasonable to supply as arguments to deliver:
abrt alrm chld cont hup int prof quit term tstp ttin ttou usr1 usr2