|
Karsten Hopp |
8a081f |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
8a081f |
Subject: Patch 7.3.1276
|
|
Karsten Hopp |
8a081f |
Fcc: outbox
|
|
Karsten Hopp |
8a081f |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
8a081f |
Mime-Version: 1.0
|
|
Karsten Hopp |
8a081f |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
8a081f |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
8a081f |
------------
|
|
Karsten Hopp |
8a081f |
|
|
Karsten Hopp |
8a081f |
Patch 7.3.1276
|
|
Karsten Hopp |
8a081f |
Problem: When using a cscope connection resizing the window may send
|
|
Karsten Hopp |
8a081f |
SIGWINCH to cscope and it quits.
|
|
Karsten Hopp |
8a081f |
Solution: Call setpgid(0, 0) in the child process. (Narendran Gopalakrishnan)
|
|
Karsten Hopp |
8a081f |
Files: src/if_cscope.c
|
|
Karsten Hopp |
8a081f |
|
|
Karsten Hopp |
8a081f |
|
|
Karsten Hopp |
8a081f |
*** ../vim-7.3.1275/src/if_cscope.c 2013-06-12 21:25:04.000000000 +0200
|
|
Karsten Hopp |
8a081f |
--- src/if_cscope.c 2013-06-30 14:59:21.000000000 +0200
|
|
Karsten Hopp |
8a081f |
***************
|
|
Karsten Hopp |
8a081f |
*** 997,1002 ****
|
|
Karsten Hopp |
8a081f |
--- 997,1011 ----
|
|
Karsten Hopp |
8a081f |
vim_free(ppath);
|
|
Karsten Hopp |
8a081f |
|
|
Karsten Hopp |
8a081f |
#if defined(UNIX)
|
|
Karsten Hopp |
8a081f |
+ # if defined(HAVE_SETSID) || defined(HAVE_SETPGID)
|
|
Karsten Hopp |
8a081f |
+ /* Change our process group to avoid cscope receiving SIGWINCH. */
|
|
Karsten Hopp |
8a081f |
+ # if defined(HAVE_SETSID)
|
|
Karsten Hopp |
8a081f |
+ (void)setsid();
|
|
Karsten Hopp |
8a081f |
+ # else
|
|
Karsten Hopp |
8a081f |
+ if (setpgid(0, 0) == -1)
|
|
Karsten Hopp |
8a081f |
+ PERROR(_("cs_create_connection setpgid failed"));
|
|
Karsten Hopp |
8a081f |
+ # endif
|
|
Karsten Hopp |
8a081f |
+ # endif
|
|
Karsten Hopp |
8a081f |
if (execl("/bin/sh", "sh", "-c", cmd, (char *)NULL) == -1)
|
|
Karsten Hopp |
8a081f |
PERROR(_("cs_create_connection exec failed"));
|
|
Karsten Hopp |
8a081f |
|
|
Karsten Hopp |
8a081f |
*** ../vim-7.3.1275/src/version.c 2013-06-30 14:46:50.000000000 +0200
|
|
Karsten Hopp |
8a081f |
--- src/version.c 2013-06-30 15:00:06.000000000 +0200
|
|
Karsten Hopp |
8a081f |
***************
|
|
Karsten Hopp |
8a081f |
*** 730,731 ****
|
|
Karsten Hopp |
8a081f |
--- 730,733 ----
|
|
Karsten Hopp |
8a081f |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
8a081f |
+ /**/
|
|
Karsten Hopp |
8a081f |
+ 1276,
|
|
Karsten Hopp |
8a081f |
/**/
|
|
Karsten Hopp |
8a081f |
|
|
Karsten Hopp |
8a081f |
--
|
|
Karsten Hopp |
8a081f |
Individualists unite!
|
|
Karsten Hopp |
8a081f |
|
|
Karsten Hopp |
8a081f |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
8a081f |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
8a081f |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
8a081f |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|