Skip to main content

spawn_detached

Function spawn_detached 

Source
pub fn spawn_detached(
    program: &Path,
    args: &[String],
    env: &[(String, String)],
) -> Result<()>
Expand description

Start program detached: no inherited stdio, its own process group on Unix, and on Windows no console window (CREATE_NO_WINDOW | DETACHED_PROCESS) so a GUI host never flashes one. The child is not waited for.