Remove some code not needed on OpenBSD.

pull/1/head
Nicholas Marriott 2013-04-10 11:51:16 +00:00
parent 738e789dbd
commit 69c86379e3
1 changed files with 1 additions and 11 deletions

View File

@ -534,18 +534,8 @@ 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) {
#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
if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
fatal("ioctl failed");
}
wp->flags &= ~PANE_RESIZE;
}