4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The GUI can't be terminated with SIGTERM. (Mark Logan)
12 Solution: Use the signal protection in the GUI as in the console, allow
13 signals when waiting for 100 msec or longer.
17 *** ../vim-7.0.211/src/ui.c Tue Aug 29 17:28:56 2006
18 --- src/ui.c Thu Mar 8 13:24:17 2007
24 ! /* When doing a blocking wait there is no need for CTRL-C to interrupt
25 ! * something, don't let it set got_int when it was mapped. */
26 ! if (mapped_ctrl_c && (wtime == -1 || wtime > 100L))
27 ! ctrl_c_interrupts = FALSE;
35 ! /* If we are going to wait for some time or block... */
36 ! if (wtime == -1 || wtime > 100L)
38 ! /* ... allow signals to kill us. */
39 ! (void)vim_handle_signal(SIGNAL_UNBLOCK);
41 ! /* ... there is no need for CTRL-C to interrupt something, don't let
42 ! * it set got_int when it was mapped. */
44 ! ctrl_c_interrupts = FALSE;
54 - if (wtime == -1 || wtime > 100L)
55 - /* allow signals to kill us */
56 - (void)vim_handle_signal(SIGNAL_UNBLOCK);
57 retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
58 - if (wtime == -1 || wtime > 100L)
59 - /* block SIGHUP et al. */
60 - (void)vim_handle_signal(SIGNAL_BLOCK);
64 ctrl_c_interrupts = TRUE;
66 #ifdef NO_CONSOLE_INPUT
71 retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
75 + if (wtime == -1 || wtime > 100L)
76 + /* block SIGHUP et al. */
77 + (void)vim_handle_signal(SIGNAL_BLOCK);
79 ctrl_c_interrupts = TRUE;
81 #ifdef NO_CONSOLE_INPUT
82 *** ../vim-7.0.211/src/version.c Thu Mar 8 13:15:08 2007
83 --- src/version.c Thu Mar 8 13:37:06 2007
87 { /* Add new patch number below this line */
93 This is an airconditioned room, do not open Windows.
95 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
96 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
97 \\\ download, build and distribute -- http://www.A-A-P.org ///
98 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///