home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.212 < prev    next >
Encoding:
Internet Message Format  |  2007-03-07  |  2.6 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 7.0.212
  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 7.0.212
  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.
  14. Files:        src/ui.c
  15.  
  16.  
  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
  19. ***************
  20. *** 166,175 ****
  21.       }
  22.   #endif
  23.   
  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;
  28.   
  29.   #ifdef FEAT_GUI
  30.       if (gui.in_use)
  31. --- 166,182 ----
  32.       }
  33.   #endif
  34.   
  35. !     /* If we are going to wait for some time or block... */
  36. !     if (wtime == -1 || wtime > 100L)
  37. !     {
  38. !     /* ... allow signals to kill us. */
  39. !     (void)vim_handle_signal(SIGNAL_UNBLOCK);
  40. !     /* ... there is no need for CTRL-C to interrupt something, don't let
  41. !      * it set got_int when it was mapped. */
  42. !     if (mapped_ctrl_c)
  43. !         ctrl_c_interrupts = FALSE;
  44. !     }
  45.   
  46.   #ifdef FEAT_GUI
  47.       if (gui.in_use)
  48. ***************
  49. *** 183,198 ****
  50.       else
  51.   # endif
  52.       {
  53. -     if (wtime == -1 || wtime > 100L)
  54. -         /* allow signals to kill us */
  55. -         (void)vim_handle_signal(SIGNAL_UNBLOCK);
  56.       retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
  57. -     if (wtime == -1 || wtime > 100L)
  58. -         /* block SIGHUP et al. */
  59. -         (void)vim_handle_signal(SIGNAL_BLOCK);
  60.       }
  61.   #endif
  62.   
  63.       ctrl_c_interrupts = TRUE;
  64.   
  65.   #ifdef NO_CONSOLE_INPUT
  66. --- 190,203 ----
  67.       else
  68.   # endif
  69.       {
  70.       retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
  71.       }
  72.   #endif
  73.   
  74. +     if (wtime == -1 || wtime > 100L)
  75. +     /* block SIGHUP et al. */
  76. +     (void)vim_handle_signal(SIGNAL_BLOCK);
  77.       ctrl_c_interrupts = TRUE;
  78.   
  79.   #ifdef NO_CONSOLE_INPUT
  80. *** ../vim-7.0.211/src/version.c    Thu Mar  8 13:15:08 2007
  81. --- src/version.c    Thu Mar  8 13:37:06 2007
  82. ***************
  83. *** 668,669 ****
  84. --- 668,671 ----
  85.   {   /* Add new patch number below this line */
  86. + /**/
  87. +     212,
  88.   /**/
  89.  
  90. -- 
  91. This is an airconditioned room, do not open Windows.
  92.  
  93.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  94. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  95. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  96.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  97.