Skip to main content

spawn_process_no_stdin

Function spawn_process_no_stdin 

Source
pub async fn spawn_process_no_stdin(
    program: &str,
    args: &[String],
    cwd: &Path,
    env: &HashMap<String, String>,
    arg0: &Option<String>,
) -> Result<SpawnedProcess>
Expand description

Spawn a process using regular pipes, but close stdin immediately.

This is useful for commands that should see EOF on stdin immediately.