4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Cscope connection may kill Vim process and others.
12 Solution: Check for pid being larger than one. (Khorev Sergey)
13 Files: src/if_cscope.c
16 *** ../vim-6.2.027/src/if_cscope.c Mon Jun 30 22:27:28 2003
17 --- src/if_cscope.c Tue Jul 22 09:46:01 2003
22 * Safety check: If the PID would be zero here, the entire X session would
26 ! if (csinfo[i].pid != 0)
28 kill(csinfo[i].pid, SIGTERM);
29 (void)waitpid(csinfo[i].pid, &pstat, 0);
33 * Safety check: If the PID would be zero here, the entire X session would
34 ! * be killed. -1 and 1 are dangerous as well.
37 ! if (csinfo[i].pid > 1)
39 kill(csinfo[i].pid, SIGTERM);
40 (void)waitpid(csinfo[i].pid, &pstat, 0);
41 *** ../vim-6.2.027/src/version.c Thu Jul 24 21:48:47 2003
42 --- src/version.c Thu Jul 24 21:49:15 2003
46 { /* Add new patch number below this line */
52 It might look like I'm doing nothing, but at the cellular level
53 I'm really quite busy.
55 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
56 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
57 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
58 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///