Restore SunOS fix, noticed by Greg Onufer.

This commit is contained in:
Nicholas Marriott 2014-03-05 23:28:32 +00:00
parent 19c534e325
commit b65c72c45c

View File

@ -540,8 +540,18 @@ server_client_check_resize(struct window_pane *wp)
ws.ws_col = wp->sx;
ws.ws_row = wp->sy;
if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1) {
#ifdef __sun
/*
* Some versions of Solaris apparently can return an error when
* resizing; don't know why this happens, can't reproduce on
* other platforms and ignoring it doesn't seem to cause any
* issues.
*/
if (errno != EINVAL)
#endif
fatal("ioctl failed");
}
wp->flags &= ~PANE_RESIZE;
}