Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2026-05-12 12:01:11 +01:00
5 changed files with 15 additions and 11 deletions

View File

@@ -374,12 +374,10 @@ window_pane_destroy_ready(struct window_pane *wp)
{
int n;
if (wp->pipe_fd != -1) {
if (EVBUFFER_LENGTH(wp->pipe_event->output) != 0)
return (0);
if (ioctl(wp->fd, FIONREAD, &n) != -1 && n > 0)
return (0);
}
if (wp->pipe_fd != -1 && EVBUFFER_LENGTH(wp->pipe_event->output) != 0)
return (0);
if (ioctl(wp->fd, FIONREAD, &n) != -1 && n > 0)
return (0);
if (~wp->flags & PANE_EXITED)
return (0);