pub fn set_command_working_directory(
command: &mut Command,
directory: &File,
) -> Result<()>Expand description
Make a child process start with its working directory bound to directory.
The descriptor remains open through exec, so the fchdir runs before the
close-on-exec flag can take effect and avoids a path-based cwd race.