Skip to main content

Module std_impl

Module std_impl 

Source
Expand description

Production ProcessSpawner backend over tokio::process::Command.

Pipes are attached to stdout and stderr, stdin is closed, and the child is configured to receive SIGKILL on drop so a panicking executor task does not leak processes. On Unix the child is also placed in its own process group at spawn time so the cancellation flow (EXEC-013, EXEC-014) can signal the whole group with kill(-pgid, sig) and reach any subprocesses the task itself spawned. On Windows there is no equivalent process-group primitive: only Signal::Kill is implemented (via tokio::process::Child::start_kill), and SIGTERM / SIGINT surface std::io::ErrorKind::Unsupported.

Structsยง

StdProcess
Production Process wrapping tokio::process::Child.
StdProcessSpawner
Production ProcessSpawner over tokio::process::Command.