ioctl(TIOCSWINSZ) will sporadically fail with an ENXIO. Ignoring this
harmless condition doesn't affect tmux behavior.
In-house patch. Has been filed upstream as ticket #158
Patch was accepted by maintainer, will be included in the next stable version.
--- ORIGINAL/server-client.c 2014-02-19 13:44:07.000000000 -0800
+++ tmux-1.9/server-client.c 2014-11-20 11:17:33.896630008 -0800
@@ -541,7 +541,8 @@
ws.ws_row = wp->sy;
if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
- fatal("ioctl failed");
+ if (errno != EINVAL && errno != ENXIO)
+ fatal("ioctl failed");
wp->flags &= ~PANE_RESIZE;
}