Skip to main content

spawn_stream_child

Function spawn_stream_child 

Source
pub fn spawn_stream_child(spec: &CommandSpec, subject: &str) -> Result<Child>
Expand description

Spawns a child process with stdin/stdout piped and stderr inherited.

The subject is used solely for contextual error messages when spawning fails. The caller is responsible for wiring the pipes before awaiting the child.