Skip to main content

Module process

Module process 

Source
Expand description

Child processes (IO.Process.spawn and IO.Process.Child), with fork and execvp as in the C runtime: a command that cannot be executed is reported by the child on its standard error, and the child exits with 255.

Functions§

lean_io_process_child_kill⚠
Child.kill : (@& Child cfg) → IO Unit: SIGKILL to the process, or to its process group when it was spawned with setsid.
lean_io_process_child_pid⚠
Child.pid : Child cfg → UInt32 (consumes child).
lean_io_process_child_take_stdin⚠
Child.takeStdin : Child cfg → IO (cfg.stdin.toHandleType × Child ..) (consumes child): the stdin handle, and the child without it.
lean_io_process_child_try_wait⚠
Child.tryWait : (@& Child cfg) → IO (Option UInt32).
lean_io_process_child_wait⚠
Child.wait : (@& Child cfg) → IO UInt32.
lean_io_process_spawn⚠
IO.Process.spawn : SpawnArgs → IO (Child args.toStdioConfig) (consumes args).