components/tmux/patches/winsz.patch
branchs11u2-sru
changeset 3400 e2231893dac6
child 3717 b16a04ab5d50
equal deleted inserted replaced
3398:344bcc9ffb11 3400:e2231893dac6
       
     1 ioctl(TIOCSWINSZ) will sporadically fail with an ENXIO.  Ignoring this
       
     2 harmless condition doesn't affect tmux behavior.
       
     3 In-house patch.  Has been filed upstream as ticket #158
       
     4     https://sourceforge.net/p/tmux/tickets/158/
       
     5 As of filing time, too early to determine whether it will be accepted or not.
       
     6 --- ORIGINAL/server-client.c	2013-03-26 12:22:31.000000000 -0700
       
     7 +++ tmux-1.8/server-client.c	2014-09-15 07:56:17.821757634 -0700
       
     8 @@ -541,7 +541,7 @@
       
     9  		 * other platforms and ignoring it doesn't seem to cause any
       
    10  		 * issues.
       
    11  		 */
       
    12 -		if (errno != EINVAL)
       
    13 +		if (errno != EINVAL && errno != ENXIO)
       
    14  #endif
       
    15  		fatal("ioctl failed");
       
    16  	}