4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: External program may hang when it tries to write to the tty.
12 Solution: Don't close the slave tty until after the child exits. (Nikola
17 *** ../vim-7.3.022/src/os_unix.c 2010-09-21 22:09:28.000000000 +0200
18 --- src/os_unix.c 2010-10-13 16:17:33.000000000 +0200
22 if (pty_master_fd >= 0)
24 - close(pty_slave_fd); /* close slave side of pty */
25 fromshell_fd = pty_master_fd;
26 toshell_fd = dup(pty_master_fd);
36 + /* Close slave side of pty. Only do this after the child has
37 + * exited, otherwise the child may hang when it tries to write on
39 + if (pty_master_fd >= 0)
40 + close(pty_slave_fd);
43 /* Make sure the child that writes to the external program is
46 *** ../vim-7.3.022/src/version.c 2010-10-13 14:05:29.000000000 +0200
47 --- src/version.c 2010-10-13 16:20:48.000000000 +0200
51 { /* Add new patch number below this line */
57 We're knights of the Round Table
58 Our shows are formidable
61 That are quite unsingable
62 We're opera mad in Camelot
63 We sing from the diaphragm a lot.
64 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
66 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
67 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
68 \\\ download, build and distribute -- http://www.A-A-P.org ///
69 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///