]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1276 v7.3.1276
authorBram Moolenaar <Bram@vim.org>
Sun, 30 Jun 2013 13:01:22 +0000 (15:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 30 Jun 2013 13:01:22 +0000 (15:01 +0200)
Problem:    When using a cscope connection resizing the window may send
            SIGWINCH to cscope and it quits.
Solution:   Call setpgid(0, 0) in the child process. (Narendran Gopalakrishnan)

src/if_cscope.c
src/version.c

index 605131156e688fc75df8281c5183cd6b371e3c1e..09982e647731bac00d63d0a43853d0b07a640c5f 100644 (file)
@@ -997,6 +997,15 @@ err_closing:
        vim_free(ppath);
 
 #if defined(UNIX)
+# if defined(HAVE_SETSID) || defined(HAVE_SETPGID)
+       /* Change our process group to avoid cscope receiving SIGWINCH. */
+#  if defined(HAVE_SETSID)
+       (void)setsid();
+#  else
+       if (setpgid(0, 0) == -1)
+           PERROR(_("cs_create_connection setpgid failed"));
+#  endif
+# endif
        if (execl("/bin/sh", "sh", "-c", cmd, (char *)NULL) == -1)
            PERROR(_("cs_create_connection exec failed"));
 
index 2c126d67a3fdd7d2ad1ac40ac66c95690cd22735..08e2d79499f21f148237a551d2cc68eb9c33a31d 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1276,
 /**/
     1275,
 /**/