Clear PANE_EXITED flag when starting new child process in case the pane

has been respawned.
This commit is contained in:
nicm
2018-11-30 08:44:40 +00:00
parent 40d246b29c
commit 67254ed8df
3 changed files with 9 additions and 1 deletions

View File

@ -158,7 +158,10 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmdq_item *item)
close(pipe_fd[1]);
wp->pipe_fd = pipe_fd[0];
wp->pipe_off = EVBUFFER_LENGTH(wp->event->input);
if (wp->fd != -1)
wp->pipe_off = EVBUFFER_LENGTH(wp->event->input);
else
wp->pipe_off = 0;
setblocking(wp->pipe_fd, 0);
wp->pipe_event = bufferevent_new(wp->pipe_fd,