Skip to main content

spawn_child

Function spawn_child 

Source
pub fn spawn_child(
    command: &[String],
    range: PortRange,
    skip_ports: &[u16],
) -> Result<RunningChild, RunnerError>
Expand description

Spawns a wrapped command with the selected port in its environment.

On Unix, SIGINT/SIGTERM forwarding uses process-global signal handlers while the returned child is active. A second concurrent forwarded child is rejected.