package eio_linux

  1. Overview
  2. Docs

Module Low_level.ProcessSource

Sourcetype t

A child process.

Setup actions to perform in the child process.

Sourceval spawn : sw:Eio.Std.Switch.t -> Fork_action.t list -> t

spawn ~sw actions forks a child process, which executes actions. The last action should be Fork_action.execve.

You will typically want to do Promise.await (exit_status child) after this.

  • parameter sw

    The child will be sent Sys.sigkill if sw finishes.

Sourceval signal : t -> int -> unit

signal t x sends signal x to t.

This is similar to doing Unix.kill t.pid x, except that it ensures no signal is sent after t has been reaped.

Sourceval pid : t -> int
Sourceval exit_status : t -> Unix.process_status Eio.Std.Promise.t

exit_status t is a promise for the process's exit status.

OCaml

Innovation. Community. Security.