pub fn prepare_reexec(cmd: &mut Command, extra_env: &[(&str, &str)])
Set up cmd to re-execute ourself: pass along our arguments and argv[0], and set extra_env (state that must survive the re-exec) in the child.
cmd
argv[0]
extra_env