diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-03-16 12:09:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-03-16 12:09:58 +0000 |
commit | 9701da0169c39ff259f281abfed7f3b4c1dbfc27 (patch) | |
tree | 7ae1b9e9936eada4d43f08c963a590949c0a7207 /src/if_cscope.c | |
parent | 4c4f7105d26a018cd7ec674105082d99ea3420c4 (diff) |
updated for version 7.1-281v7.1.281
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r-- | src/if_cscope.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c index 6efa72b3d0..e76b58dd7f 100644 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -2136,7 +2136,8 @@ cs_release_csp(i, freefnpp) # if defined(HAVE_SIGACTION) struct sigaction sa, old; - /* Use sigaction() to limit the waiting time to two seconds. */ + /* Use sigaction() to limit the waiting time to two seconds. */ + sigemptyset(&sa.sa_mask); sa.sa_handler = sig_handler; sa.sa_flags = SA_NODEFER; sigaction(SIGALRM, &sa, &old); @@ -2169,7 +2170,7 @@ cs_release_csp(i, freefnpp) */ if (pid < 0 && csinfo[i].pid > 1) { - kill(csinfo[i].pid, SIGTERM); + kill(csinfo[i].pid, SIGKILL); (void)waitpid(csinfo[i].pid, &pstat, 0); } } |