pub fn foreground_process_path( master_fd: RawFd, shell_pid: u32, ) -> Result<PathBuf, Box<dyn Error>>
Get working directory of controlling process.