components/tmux/patches/winsz.patch
author Jiri Kukacka <jiri.kukacka@oracle.com>
Mon, 09 Feb 2015 09:22:37 -0800
branchs11-update
changeset 3766 ea3ce1736b34
parent 3391 e5c18bd08e0d
child 3717 b16a04ab5d50
permissions -rw-r--r--
20344401 Make Wireshark ready for Network Observability role 20412467 Make Tcpdump ready for Network Observability role

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
    https://sourceforge.net/p/tmux/tickets/158/
As of filing time, too early to determine whether it will be accepted or not.
--- ORIGINAL/server-client.c	2013-03-26 12:22:31.000000000 -0700
+++ tmux-1.8/server-client.c	2014-09-15 07:56:17.821757634 -0700
@@ -541,7 +541,7 @@
 		 * other platforms and ignoring it doesn't seem to cause any
 		 * issues.
 		 */
-		if (errno != EINVAL)
+		if (errno != EINVAL && errno != ENXIO)
 #endif
 		fatal("ioctl failed");
 	}