components/tmux/patches/winsz.patch
author Yiteng Zhang <yiteng.zhang@oracle.com>
Thu, 19 Nov 2015 11:19:15 -0800
changeset 5109 5d341c4a6b80
parent 3717 b16a04ab5d50
permissions -rw-r--r--
19877233 ply should hookup its tests 19931836 "gmake test" failures for python/jsonrpclib 20745110 jsonrpclib can now deliver a Python 3.x package 21911841 update pycurl and deliver a Python 3.x package 21912037 update ply to version 3.7 and deliver a Python 3.x package 21985306 update coverage to version 4.0.1 and deliver its Python 3.x package 22067764 update CherryPy to version 3.8.0 and deliver a Python 3.x package
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2092
5888331a0f07 19412065 tmux dies when creating panes
Peter Schow <peter.schow@oracle.com>
parents:
diff changeset
     1
ioctl(TIOCSWINSZ) will sporadically fail with an ENXIO.  Ignoring this
5888331a0f07 19412065 tmux dies when creating panes
Peter Schow <peter.schow@oracle.com>
parents:
diff changeset
     2
harmless condition doesn't affect tmux behavior.
5888331a0f07 19412065 tmux dies when creating panes
Peter Schow <peter.schow@oracle.com>
parents:
diff changeset
     3
In-house patch.  Has been filed upstream as ticket #158
5888331a0f07 19412065 tmux dies when creating panes
Peter Schow <peter.schow@oracle.com>
parents:
diff changeset
     4
    https://sourceforge.net/p/tmux/tickets/158/
3717
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
     5
Patch was accepted by maintainer, will be included in the next stable version.
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
     6
--- ORIGINAL/server-client.c	2014-02-19 13:44:07.000000000 -0800
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
     7
+++ tmux-1.9/server-client.c	2014-11-20 11:17:33.896630008 -0800
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
     8
@@ -541,7 +541,8 @@
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
     9
 	ws.ws_row = wp->sy;
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
    10
 
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
    11
 	if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
    12
-		fatal("ioctl failed");
2092
5888331a0f07 19412065 tmux dies when creating panes
Peter Schow <peter.schow@oracle.com>
parents:
diff changeset
    13
+		if (errno != EINVAL && errno != ENXIO)
3717
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
    14
+			fatal("ioctl failed");
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
    15
 
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
    16
 	wp->flags &= ~PANE_RESIZE;
b16a04ab5d50 19622198 Update tmux to 1.9
Peter Schow <peter.schow@oracle.com>
parents: 2092
diff changeset
    17
 }