Core.SignalSourceSignal handlers.
include Bin_prot.Binable.S with type t := tinclude Bin_prot.Binable.S_only_functions with type t := tThis function only needs implementation if t exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t afterwards.
include Comparable.S with type t := tinclude Base.Comparable.S with type t := tinclude Base.Comparisons.S with type t := tascending is identical to compare. descending x y = ascending y x. These are intended to be mnemonic when used like List.sort ~compare:ascending and List.sort ~cmp:descending, since they cause the list to be sorted in ascending or descending order, respectively.
clamp_exn t ~min ~max returns t', the closest value to t such that between t' ~low:min ~high:max is true.
Raises if not (min <= max).
include Base.Stringable.S with type t := tof_caml_int constructs a Signal.t given an OCaml internal signal number. This is only for the use of the Core_unix module.
to_string t returns a human-readable name: "sigabrt", "sigalrm", ...
type sys_behavior = [ | `ContinueContinue the process if it is currently stopped
*)| `Dump_coreTerminate the process and dump core
*)| `IgnoreIgnore the signal
*)| `StopStop (suspend) the process
*)| `TerminateTerminate the process
*) ]The behaviour of the system if a signal is received by a process. See include/linux/kernel.h in the Linux kernel source tree (not the file /usr/include/linux/kernel.h).
Queries the default system behavior for a signal.
handle_default t is set t `Default.
ignore t is set t `Ignore.
Specific signals, along with their default behavior and meaning.
Ignore No-op; can be used to test whether the target process exists and the current process has permission to signal it
The Expert module contains functions that novice users should avoid, due to their complexity.