module Signal:This module provides support for signal handling.sig..end
type t =
| |
HUP |
(* | Equivalent to Sys.sighup. | *) |
| |
USR1 |
(* | Equivalent to Sys.sigusr1. | *) |
| |
USR2 |
(* | Equivalent to Sys.sigusr2. | *) |
type error =
| |
Invalid_signal_string of |
| |
Invalid_signal_int of |
| |
Invalid_signal_sys of |
exception Exception of error
val of_string : string -> t
Raises Exception if the passed string is invalid.
val to_sys : t -> intSys equivalent.val of_sys : int -> tSys integer code into a signal.
Raises Exception if the passed integer is invalid.
val to_int : t -> int0 and max_int - 1.val of_int : int -> t
Raises Exception if the passed integer is invalid (below 0, or
above or equal to max_int).
val max_int : int