pub async fn spawn_process(
program: &str,
args: &[String],
cwd: &Path,
env: &HashMap<String, String>,
arg0: &Option<String>,
size: TerminalSize,
inherited_fds: &[i32],
) -> Result<SpawnedProcess>Expand description
Spawn a process attached to a PTY, preserving selected inherited file descriptors across exec on Unix.