summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2013-06-30 15:01:22 +0200
committerBram Moolenaar <bram@vim.org>2013-06-30 15:01:22 +0200
commit42d8361c866f1343507c486731f68affac0e2bf5 (patch)
tree042edca53828bf941713064140644559f985954c
parent065bb8108c13e326985c8baa842a649d328cb8e5 (diff)
downloadvim-42d8361c866f1343507c486731f68affac0e2bf5.tar.gz
updated for version 7.3.1276v7.3.1276v7-3-1276
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)
-rw-r--r--src/if_cscope.c9
-rw-r--r--src/version.c2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index 60513115..09982e64 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -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"));
diff --git a/src/version.c b/src/version.c
index 2c126d67..08e2d794 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1276,
+/**/
1275,
/**/
1274,