|
Karsten Hopp |
80e191 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
80e191 |
Subject: patch 7.0.212
|
|
Karsten Hopp |
80e191 |
Fcc: outbox
|
|
Karsten Hopp |
80e191 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
80e191 |
Mime-Version: 1.0
|
|
Karsten Hopp |
80e191 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
80e191 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
80e191 |
------------
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
Patch 7.0.212
|
|
Karsten Hopp |
80e191 |
Problem: The GUI can't be terminated with SIGTERM. (Mark Logan)
|
|
Karsten Hopp |
80e191 |
Solution: Use the signal protection in the GUI as in the console, allow
|
|
Karsten Hopp |
80e191 |
signals when waiting for 100 msec or longer.
|
|
Karsten Hopp |
80e191 |
Files: src/ui.c
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
*** ../vim-7.0.211/src/ui.c Tue Aug 29 17:28:56 2006
|
|
Karsten Hopp |
80e191 |
--- src/ui.c Thu Mar 8 13:24:17 2007
|
|
Karsten Hopp |
80e191 |
***************
|
|
Karsten Hopp |
80e191 |
*** 166,175 ****
|
|
Karsten Hopp |
80e191 |
}
|
|
Karsten Hopp |
80e191 |
#endif
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
! /* When doing a blocking wait there is no need for CTRL-C to interrupt
|
|
Karsten Hopp |
80e191 |
! * something, don't let it set got_int when it was mapped. */
|
|
Karsten Hopp |
80e191 |
! if (mapped_ctrl_c && (wtime == -1 || wtime > 100L))
|
|
Karsten Hopp |
80e191 |
! ctrl_c_interrupts = FALSE;
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
80e191 |
if (gui.in_use)
|
|
Karsten Hopp |
80e191 |
--- 166,182 ----
|
|
Karsten Hopp |
80e191 |
}
|
|
Karsten Hopp |
80e191 |
#endif
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
! /* If we are going to wait for some time or block... */
|
|
Karsten Hopp |
80e191 |
! if (wtime == -1 || wtime > 100L)
|
|
Karsten Hopp |
80e191 |
! {
|
|
Karsten Hopp |
80e191 |
! /* ... allow signals to kill us. */
|
|
Karsten Hopp |
80e191 |
! (void)vim_handle_signal(SIGNAL_UNBLOCK);
|
|
Karsten Hopp |
80e191 |
!
|
|
Karsten Hopp |
80e191 |
! /* ... there is no need for CTRL-C to interrupt something, don't let
|
|
Karsten Hopp |
80e191 |
! * it set got_int when it was mapped. */
|
|
Karsten Hopp |
80e191 |
! if (mapped_ctrl_c)
|
|
Karsten Hopp |
80e191 |
! ctrl_c_interrupts = FALSE;
|
|
Karsten Hopp |
80e191 |
! }
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
80e191 |
if (gui.in_use)
|
|
Karsten Hopp |
80e191 |
***************
|
|
Karsten Hopp |
80e191 |
*** 183,198 ****
|
|
Karsten Hopp |
80e191 |
else
|
|
Karsten Hopp |
80e191 |
# endif
|
|
Karsten Hopp |
80e191 |
{
|
|
Karsten Hopp |
80e191 |
- if (wtime == -1 || wtime > 100L)
|
|
Karsten Hopp |
80e191 |
- /* allow signals to kill us */
|
|
Karsten Hopp |
80e191 |
- (void)vim_handle_signal(SIGNAL_UNBLOCK);
|
|
Karsten Hopp |
80e191 |
retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
|
|
Karsten Hopp |
80e191 |
- if (wtime == -1 || wtime > 100L)
|
|
Karsten Hopp |
80e191 |
- /* block SIGHUP et al. */
|
|
Karsten Hopp |
80e191 |
- (void)vim_handle_signal(SIGNAL_BLOCK);
|
|
Karsten Hopp |
80e191 |
}
|
|
Karsten Hopp |
80e191 |
#endif
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
ctrl_c_interrupts = TRUE;
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
#ifdef NO_CONSOLE_INPUT
|
|
Karsten Hopp |
80e191 |
--- 190,203 ----
|
|
Karsten Hopp |
80e191 |
else
|
|
Karsten Hopp |
80e191 |
# endif
|
|
Karsten Hopp |
80e191 |
{
|
|
Karsten Hopp |
80e191 |
retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
|
|
Karsten Hopp |
80e191 |
}
|
|
Karsten Hopp |
80e191 |
#endif
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
+ if (wtime == -1 || wtime > 100L)
|
|
Karsten Hopp |
80e191 |
+ /* block SIGHUP et al. */
|
|
Karsten Hopp |
80e191 |
+ (void)vim_handle_signal(SIGNAL_BLOCK);
|
|
Karsten Hopp |
80e191 |
+
|
|
Karsten Hopp |
80e191 |
ctrl_c_interrupts = TRUE;
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
#ifdef NO_CONSOLE_INPUT
|
|
Karsten Hopp |
80e191 |
*** ../vim-7.0.211/src/version.c Thu Mar 8 13:15:08 2007
|
|
Karsten Hopp |
80e191 |
--- src/version.c Thu Mar 8 13:37:06 2007
|
|
Karsten Hopp |
80e191 |
***************
|
|
Karsten Hopp |
80e191 |
*** 668,669 ****
|
|
Karsten Hopp |
80e191 |
--- 668,671 ----
|
|
Karsten Hopp |
80e191 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
80e191 |
+ /**/
|
|
Karsten Hopp |
80e191 |
+ 212,
|
|
Karsten Hopp |
80e191 |
/**/
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
--
|
|
Karsten Hopp |
80e191 |
This is an airconditioned room, do not open Windows.
|
|
Karsten Hopp |
80e191 |
|
|
Karsten Hopp |
80e191 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
80e191 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
80e191 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
80e191 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|