]> granicus.if.org Git - vim/commitdiff
updated for version 7.2-097 v7.2.097
authorBram Moolenaar <Bram@vim.org>
Wed, 4 Feb 2009 13:19:42 +0000 (13:19 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 4 Feb 2009 13:19:42 +0000 (13:19 +0000)
src/os_unix.c
src/version.c

index 9d6f6cb6f461acb73a9b6db16ed83bc835561444..27ee65e29753f6b589453d2d9707f85d3fe4e04b 100644 (file)
@@ -3950,7 +3950,17 @@ mch_call_shell(cmd, options)
                 * children can be kill()ed.  Don't do this when using pipes,
                 * because stdin is not a tty, we would lose /dev/tty. */
                if (p_stmp)
+               {
                    (void)setsid();
+#  if defined(SIGHUP)
+                   /* When doing "!xterm&" and 'shell' is bash: the shell
+                    * will exit and send SIGHUP to all processes in its
+                    * group, killing the just started process.  Ignore SIGHUP
+                    * to avoid that. (suggested by Simon Schubert)
+                    */
+                   signal(SIGHUP, SIG_IGN);
+#  endif
+               }
 # endif
 # ifdef FEAT_GUI
                if (pty_slave_fd >= 0)
index 12905af76c3c205a7e1e5374b36969959df1934d..d5e44843d811af576c0b749aa34d55a9ec02fe19 100644 (file)
@@ -676,6 +676,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    97,
 /**/
     96,
 /**/