package shcaml

  1. Overview
  2. Docs
exception Not_child
type t
type status = Unix.process_status =
  1. | WEXITED of int
  2. | WSIGNALED of int
  3. | WSTOPPED of int
val fork : unit -> t option
val spawn : ?quiet:bool -> (unit -> unit) -> t
val kill : ?raise:bool -> int -> t -> unit
val wait : t -> status
val wait_any : t list -> t
val status_of_proc : t -> status option
val is_child : t -> bool
val pid_of_proc : t -> int
val proc_of_pid : int -> t
val procs_of_pid : int -> t list
val exit_with_status : status -> 'a
val autoreap : unit -> unit
val don't_autoreap : unit -> unit
val system : string -> status
val system_program : ?path:bool -> string -> ?argv0:string -> string list -> status
val vfork : string -> t
val vfork_program : ?path:bool -> string -> ?argv0:string -> string list -> t
val exec : string -> 'a
val exec_program : ?path:bool -> string -> ?argv0:string -> string list -> 'a
type execspec = {
  1. path : bool option;
  2. program : string;
  3. argv0 : string option;
  4. args : string list;
}
val execspec : ?path:bool -> string -> ?argv0:string -> string list -> execspec
val with_execspec : execspec -> (?path:bool -> string -> ?argv0:string -> string list -> 'a) -> 'a
val pp : Stdlib.Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.