From: Bram Moolenaar Date: Sun, 30 Jun 2013 13:01:22 +0000 (+0200) Subject: updated for version 7.3.1276 X-Git-Tag: v7.3.1276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85e932f2ca8830990adffa904401089e4e357c21;p=vim updated for version 7.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) --- diff --git a/src/if_cscope.c b/src/if_cscope.c index 605131156..09982e647 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 2c126d67a..08e2d7949 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1276, /**/ 1275, /**/