version 1.214, 2018/11/19 13:35:41 |
version 1.215, 2018/11/30 08:44:40 |
|
|
sigprocmask(SIG_BLOCK, &set, &oldset); |
sigprocmask(SIG_BLOCK, &set, &oldset); |
switch (wp->pid = fdforkpty(ptm_fd, &wp->fd, wp->tty, NULL, &ws)) { |
switch (wp->pid = fdforkpty(ptm_fd, &wp->fd, wp->tty, NULL, &ws)) { |
case -1: |
case -1: |
|
wp->event = NULL; |
wp->fd = -1; |
wp->fd = -1; |
|
|
xasprintf(cause, "%s: %s", cmd, strerror(errno)); |
xasprintf(cause, "%s: %s", cmd, strerror(errno)); |
|
|
window_pane_error_callback, wp); |
window_pane_error_callback, wp); |
if (wp->event == NULL) |
if (wp->event == NULL) |
fatalx("out of memory"); |
fatalx("out of memory"); |
|
|
|
wp->pipe_off = 0; |
|
wp->flags &= ~PANE_EXITED; |
|
|
bufferevent_setwatermark(wp->event, EV_READ, 0, READ_SIZE); |
bufferevent_setwatermark(wp->event, EV_READ, 0, READ_SIZE); |
bufferevent_enable(wp->event, EV_READ|EV_WRITE); |
bufferevent_enable(wp->event, EV_READ|EV_WRITE); |