diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-11-28 12:30:43 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-11-28 12:30:43 +0000 |
commit | e00730d14952a0e16c7b3011c28d7bd851f68660 (patch) | |
tree | b966025521c7b47fa66a99c39d7abebd7d733c75 /window.c | |
parent | 5f5f029e3b3a782dc616778739b2801b00b17c0e (diff) | |
download | rtmux-e00730d14952a0e16c7b3011c28d7bd851f68660.tar.gz rtmux-e00730d14952a0e16c7b3011c28d7bd851f68660.tar.bz2 rtmux-e00730d14952a0e16c7b3011c28d7bd851f68660.zip |
Fix bad merge.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -448,6 +448,15 @@ window_pane_send_resize(struct window_pane *wp, int yadjust) ws.ws_xpixel = w->xpixel * ws.ws_col; ws.ws_ypixel = w->ypixel * ws.ws_row; 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 && errno != ENXIO) +#endif fatal("ioctl failed"); } |