components/tmux/patches/winsz.patch
changeset 3717 b16a04ab5d50
parent 2092 5888331a0f07
equal deleted inserted replaced
3716:a2629a2cf270 3717:b16a04ab5d50
     1 ioctl(TIOCSWINSZ) will sporadically fail with an ENXIO.  Ignoring this
     1 ioctl(TIOCSWINSZ) will sporadically fail with an ENXIO.  Ignoring this
     2 harmless condition doesn't affect tmux behavior.
     2 harmless condition doesn't affect tmux behavior.
     3 In-house patch.  Has been filed upstream as ticket #158
     3 In-house patch.  Has been filed upstream as ticket #158
     4     https://sourceforge.net/p/tmux/tickets/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.
     5 Patch was accepted by maintainer, will be included in the next stable version.
     6 --- ORIGINAL/server-client.c	2013-03-26 12:22:31.000000000 -0700
     6 --- ORIGINAL/server-client.c	2014-02-19 13:44:07.000000000 -0800
     7 +++ tmux-1.8/server-client.c	2014-09-15 07:56:17.821757634 -0700
     7 +++ tmux-1.9/server-client.c	2014-11-20 11:17:33.896630008 -0800
     8 @@ -541,7 +541,7 @@
     8 @@ -541,7 +541,8 @@
     9  		 * other platforms and ignoring it doesn't seem to cause any
     9  	ws.ws_row = wp->sy;
    10  		 * issues.
    10  
    11  		 */
    11  	if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
    12 -		if (errno != EINVAL)
    12 -		fatal("ioctl failed");
    13 +		if (errno != EINVAL && errno != ENXIO)
    13 +		if (errno != EINVAL && errno != ENXIO)
    14  #endif
    14 +			fatal("ioctl failed");
    15  		fatal("ioctl failed");
    15  
    16  	}
    16  	wp->flags &= ~PANE_RESIZE;
       
    17  }