package spin

  1. Overview
  2. Docs

Module Spin_std.SpawnSource

include module type of struct include Spawn end

Note: on Unix, spawn uses vfork by default. It has been tested, but if you believe this is causing a problem in your application, you can change this default at runtime by setting the environment variable SPAWN_USE_FORK.

Sourcemodule Working_dir = Spawn.Working_dir
Sourcemodule Unix_backend = Spawn.Unix_backend
Sourcemodule Env = Spawn.Env
Sourcemodule Pgid = Spawn.Pgid

Process group IDs

Sourceval resolve_in_path : string -> string option
Sourceval resolve_in_path_exn : string -> string
Sourceval spawn : ?env:Env.t -> ?cwd:Working_dir.t -> ?stdin:Unix.file_descr -> ?stdout:Unix.file_descr -> ?stderr:Unix.file_descr -> string -> string list -> int
Sourceval exec : ?env:Env.t -> ?cwd:Working_dir.t -> ?stdin:Unix.file_descr -> ?stdout:Unix.file_descr -> ?stderr:Unix.file_descr -> string -> string list -> (unit, string) result
OCaml

Innovation. Community. Security.