(init_subshell): use openpty() to open master/slave devices for subshell.