pub fn spawn_detached(cmd: &str, args: &[&str]) -> Result<u32>Expand description
Spawn a command detached from the current session. Returns the PID of the detached process.
On Unix: uses setsid to create a new session, redirects stdio to /dev/null. On Windows: uses CREATE_NO_WINDOW | DETACHED_PROCESS creation flags.