]>
Commit | Line | Data |
---|---|---|
d8621708 | 1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.028 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 6.2.028 | |
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 | |
14 | ||
15 | ||
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 | |
18 | *************** | |
19 | *** 2114,2123 **** | |
20 | ||
21 | /* | |
22 | * Safety check: If the PID would be zero here, the entire X session would | |
23 | ! * be killed... | |
24 | */ | |
25 | #if defined(UNIX) | |
26 | ! if (csinfo[i].pid != 0) | |
27 | { | |
28 | kill(csinfo[i].pid, SIGTERM); | |
29 | (void)waitpid(csinfo[i].pid, &pstat, 0); | |
30 | --- 2114,2123 ---- | |
31 | ||
32 | /* | |
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. | |
35 | */ | |
36 | #if defined(UNIX) | |
37 | ! if (csinfo[i].pid > 1) | |
38 | { | |
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 | |
43 | *************** | |
44 | *** 632,633 **** | |
45 | --- 632,635 ---- | |
46 | { /* Add new patch number below this line */ | |
47 | + /**/ | |
48 | + 28, | |
49 | /**/ | |
50 | ||
51 | -- | |
52 | It might look like I'm doing nothing, but at the cellular level | |
53 | I'm really quite busy. | |
54 | ||
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 /// |