aboutsummaryrefslogtreecommitdiff
path: root/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-03-05 23:28:32 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-03-05 23:28:32 +0000
commitb65c72c45c79c3f1fea6446c83f6ac47e813a52a (patch)
tree58191a96a2006aa7b2569e2917593c4151c0b965 /server-client.c
parent19c534e3256ef99fcd00b39c50d28b2cc8defb7e (diff)
downloadrtmux-b65c72c45c79c3f1fea6446c83f6ac47e813a52a.tar.gz
rtmux-b65c72c45c79c3f1fea6446c83f6ac47e813a52a.tar.bz2
rtmux-b65c72c45c79c3f1fea6446c83f6ac47e813a52a.zip
Restore SunOS fix, noticed by Greg Onufer.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/server-client.c b/server-client.c
index 07ef5697..4ffcb3a0 100644
--- a/server-client.c
+++ b/server-client.c
@@ -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;
}