Use fdforkpty() instead of our own unwrapped versions.

This commit is contained in:
nicm
2017-04-20 17:49:26 +00:00
parent 51a0dbb172
commit 87997efe8d
5 changed files with 4 additions and 75 deletions

View File

@ -883,7 +883,7 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
ws.ws_col = screen_size_x(&wp->base);
ws.ws_row = screen_size_y(&wp->base);
wp->pid = pty_fork(ptm_fd, &wp->fd, wp->tty, sizeof wp->tty, &ws);
wp->pid = fdforkpty(ptm_fd, &wp->fd, wp->tty, NULL, &ws);
switch (wp->pid) {
case -1:
wp->fd = -1;