Karsten Hopp 2abd20
To: vim-dev@vim.org
Karsten Hopp 2abd20
Subject: Patch 7.1.281
Karsten Hopp 2abd20
Fcc: outbox
Karsten Hopp 2abd20
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 2abd20
Mime-Version: 1.0
Karsten Hopp 2abd20
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 2abd20
Content-Transfer-Encoding: 8bit
Karsten Hopp 2abd20
------------
Karsten Hopp 2abd20
Karsten Hopp 2abd20
Patch 7.1.281 (after 7.1.279)
Karsten Hopp 2abd20
Problem:    sa.sa_mask is not initialized.  Cscope may not exit.
Karsten Hopp 2abd20
Solution:   Use sigemptyset().  Use SIGKILL instead of SIGTERM. (Dominique
Karsten Hopp 2abd20
	    Pelle)
Karsten Hopp 2abd20
Files:	    src/if_cscope.c
Karsten Hopp 2abd20
Karsten Hopp 2abd20
Karsten Hopp 2abd20
*** ../vim-7.1.280/src/if_cscope.c	Sat Mar 15 12:40:23 2008
Karsten Hopp 2abd20
--- src/if_cscope.c	Sun Mar 16 13:05:51 2008
Karsten Hopp 2abd20
***************
Karsten Hopp 2abd20
*** 2136,2142 ****
Karsten Hopp 2abd20
  # if defined(HAVE_SIGACTION)
Karsten Hopp 2abd20
  	struct sigaction sa, old;
Karsten Hopp 2abd20
  
Karsten Hopp 2abd20
!         /* Use sigaction() to limit the waiting time to two seconds. */
Karsten Hopp 2abd20
  	sa.sa_handler = sig_handler;
Karsten Hopp 2abd20
  	sa.sa_flags = SA_NODEFER;
Karsten Hopp 2abd20
  	sigaction(SIGALRM, &sa, &old;;
Karsten Hopp 2abd20
--- 2136,2143 ----
Karsten Hopp 2abd20
  # if defined(HAVE_SIGACTION)
Karsten Hopp 2abd20
  	struct sigaction sa, old;
Karsten Hopp 2abd20
  
Karsten Hopp 2abd20
! 	/* Use sigaction() to limit the waiting time to two seconds. */
Karsten Hopp 2abd20
! 	sigemptyset(&sa.sa_mask);
Karsten Hopp 2abd20
  	sa.sa_handler = sig_handler;
Karsten Hopp 2abd20
  	sa.sa_flags = SA_NODEFER;
Karsten Hopp 2abd20
  	sigaction(SIGALRM, &sa, &old;;
Karsten Hopp 2abd20
***************
Karsten Hopp 2abd20
*** 2169,2175 ****
Karsten Hopp 2abd20
  	 */
Karsten Hopp 2abd20
  	if (pid < 0 && csinfo[i].pid > 1)
Karsten Hopp 2abd20
  	{
Karsten Hopp 2abd20
! 	    kill(csinfo[i].pid, SIGTERM);
Karsten Hopp 2abd20
  	    (void)waitpid(csinfo[i].pid, &pstat, 0);
Karsten Hopp 2abd20
  	}
Karsten Hopp 2abd20
      }
Karsten Hopp 2abd20
--- 2170,2176 ----
Karsten Hopp 2abd20
  	 */
Karsten Hopp 2abd20
  	if (pid < 0 && csinfo[i].pid > 1)
Karsten Hopp 2abd20
  	{
Karsten Hopp 2abd20
! 	    kill(csinfo[i].pid, SIGKILL);
Karsten Hopp 2abd20
  	    (void)waitpid(csinfo[i].pid, &pstat, 0);
Karsten Hopp 2abd20
  	}
Karsten Hopp 2abd20
      }
Karsten Hopp 2abd20
*** ../vim-7.1.280/src/version.c	Sat Mar 15 13:10:57 2008
Karsten Hopp 2abd20
--- src/version.c	Sun Mar 16 13:08:08 2008
Karsten Hopp 2abd20
***************
Karsten Hopp 2abd20
*** 668,669 ****
Karsten Hopp 2abd20
--- 668,671 ----
Karsten Hopp 2abd20
  {   /* Add new patch number below this line */
Karsten Hopp 2abd20
+ /**/
Karsten Hopp 2abd20
+     281,
Karsten Hopp 2abd20
  /**/
Karsten Hopp 2abd20
Karsten Hopp 2abd20
-- 
Karsten Hopp 2abd20
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 2abd20
136. You decide to stay in a low-paying job teaching just for the
Karsten Hopp 2abd20
     free Internet access.
Karsten Hopp 2abd20
Karsten Hopp 2abd20
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 2abd20
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 2abd20
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 2abd20
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///