pub fn join_before_exec_pty(cmd: &mut CommandBuilder, procs: PathBuf)Expand description
join_before_exec for a PTY spawn (portable-pty has no pre-exec hook):
run the command through sh, which joins and then execs it, so the
program starts already in the cgroup, as the same process.