Skip to main content

Module process

Module process 

Source
Expand description

Child processes: spawn one, wait for its exit and talk to it through async pipes. Child processes: a Command spawns one, and its Child waits for the exit without holding a thread and talks to it through async pipes.

A child’s exit is reported by a shard’s driver, which reaps the child (see exit); a wait never blocks a thread. A child whose Child goes before it exits is still reaped (on unix), by the shard that watches it, so it leaves no zombie behind while a runtime runs.

Structs§

Child
A spawned child process.
ChildStderr
The child’s stderr.
ChildStdin
The child’s stdin: write to it, and drop it (or close) to end it.
ChildStdout
The child’s stdout.
Command
A process to spawn, as std::process::Command describes it.
ExitStatus
Describes the result of a process after it has terminated.
Output
The output of a finished process.
Stdio
Describes what to do with a standard I/O stream for a child process when passed to the stdin, stdout, and stderr methods of Command.