Skip to main content

configure_detached

Function configure_detached 

Source
pub fn configure_detached(cmd: &mut Command)
Expand description

Configure cmd so the spawned child detaches into its own process group, surviving the terminal that launched it.

On Unix this uses the safe, stable Command::process_group(0); on non-Unix platforms it is a no-op. Call this before cmd.spawn().