package core
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=743a141234e04210e295980f7a78a6d9
sha512=61b415f4fb12c78d30649fff1aabe3a475eea926ce6edb7774031f4dc7f37ea51f5d9337ead6ec73cd93da5fd1ed0f2738c210c71ebc8fe9d7f6135a06bd176f
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.