Skip to main content

replace_process

Function replace_process 

Source
pub fn replace_process(cmd: &str, args: &[&str]) -> Result<()>
Expand description

Replace the current process with an interactive command (for SSH/TTY). Uses Unix exec() — the Rust process is fully replaced, no return on success. Note: This is safe because all arguments are passed as an array, not via shell interpolation.