4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: "!xterm&" doesn't work when 'shell' is "bash".
12 Solution: Ignore SIGHUP after calling setsid(). (Simon Schubert)
16 *** ../vim-7.2.096/src/os_unix.c Fri Nov 28 21:26:50 2008
17 --- src/os_unix.c Wed Feb 4 12:09:55 2009
21 * children can be kill()ed. Don't do this when using pipes,
22 * because stdin is not a tty, we would lose /dev/tty. */
26 + # if defined(SIGHUP)
27 + /* When doing "!xterm&" and 'shell' is bash: the shell
28 + * will exit and send SIGHUP to all processes in its
29 + * group, killing the just started process. Ignore SIGHUP
30 + * to avoid that. (suggested by Simon Schubert)
32 + signal(SIGHUP, SIG_IGN);
37 if (pty_slave_fd >= 0)
38 *** ../vim-7.2.096/src/version.c Wed Feb 4 13:13:42 2009
39 --- src/version.c Wed Feb 4 14:16:37 2009
43 { /* Add new patch number below this line */
49 It was recently discovered that research causes cancer in rats.
51 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
52 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
53 \\\ download, build and distribute -- http://www.A-A-P.org ///
54 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///