Expand description
Process spawning and lifecycle management.
This module exposes explicit Linux/Android process primitives. Callers must provide the exact argument vector and choose the spawn backend. Core does not infer shell/root behavior, select backends from platform properties, or silently switch between backends.
Structs§
- Managed
Process - Full process lifecycle driven by a caller-owned reactor.
- Output
- The result of a process execution.
- Process
- A handle to a spawned process.
- Process
Group - Process group and session configuration.
- Running
Process - A process that is currently running and being monitored.
- Spawn
Options - Configuration options for spawning a new process.
- Spawn
Options Builder - Builder for
SpawnOptions.
Enums§
- Cancel
Policy - Policy for handling process cancellation or timeouts.
- Exit
Status - Represents the termination status of a process.
- Session
Exit Policy - Policy for what natural completion (the leader exiting on its own) does with a still-live isolated/pty session.
- Spawn
Backend - Explicit process spawning backend.
- Spawn
FdPolicy - Explicit file-descriptor inheritance policy for spawned children.
Functions§
- make_
pty - Open a new pseudo-terminal and return
(master, slave), both relocated above stdio withO_CLOEXEC. - pty_
window - Apply an initial window size to a pty master before the child execs and
read back the actual
winsizethe kernel holds. - spawn
- Spawn a process and block until completion or timeout.
- spawn_
managed - Start a process whose complete lifecycle is driven by a caller-owned reactor.
- spawn_
start - Start spawning a process and return a monitor handle.
Type Aliases§
- Spawn
Drain - Specialized drain state for process spawning.