Skip to main content

Module spawn

Module spawn 

Source
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§

Output
The result of a process execution.
Process
A handle to a spawned process.
ProcessGroup
Process group and session configuration.
RunningProcess
A process that is currently running and being monitored.
SpawnOptions
Configuration options for spawning a new process.
SpawnOptionsBuilder
Builder for SpawnOptions.

Enums§

CancelPolicy
Policy for handling process cancellation or timeouts.
ExitStatus
Represents the termination status of a process.
SpawnBackend
Explicit process spawning backend.
SpawnFdPolicy
Explicit file-descriptor inheritance policy for spawned children.

Functions§

spawn
Spawn a process and block until completion or timeout.
spawn_start
Start spawning a process and return a monitor handle.

Type Aliases§

SpawnDrain
Specialized drain state for process spawning.