Skip to main content

exec

pub fn exec(command: &mut Command) -> Error
Expand description

Replace the current Unix process image using the supplied native command. Success never returns; failure returns the original OS error. This does not spawn a child or change the caller’s requested argv, environment, stdio, pre-exec hooks, process group, or session policy. As with CommandExt::exec, failed execution may leave setup changes applied to the current process.