package core
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=b0e23c1b1049e48cbbaa596d49927c66e6026506031bd7f5b485af6e9475b4e3
doc/core/Core/Signal/index.html
Module Core.SignalSource
Signal handlers.
include Bin_prot.Binable.S with type t := t
include Bin_prot.Binable.S_only_functions with type t := t
This 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 := t
include Base.Comparable.S with type t := t
include Base.Comparisons.S with type t := t
ascending 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 := t
of_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 = [ | `Continue(*Continue the process if it is currently stopped
*)| `Dump_core(*Terminate the process and dump core
*)| `Ignore(*Ignore the signal
*)| `Stop(*Stop (suspend) the process
*)| `Terminate(*Terminate 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.