19412065 tmux dies when creating panes s11u2-sru
authorPeter Schow <peter.schow@oracle.com>
Fri, 17 Oct 2014 09:26:08 -0700
branchs11u2-sru
changeset 3400 e2231893dac6
parent 3398 344bcc9ffb11
child 3402 110b254c69b8
19412065 tmux dies when creating panes
components/tmux/patches/winsz.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/tmux/patches/winsz.patch	Fri Oct 17 09:26:08 2014 -0700
@@ -0,0 +1,16 @@
+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
[email protected]@ -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");
+ 	}