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 / 6.1.180 < prev    next >
Encoding:
Internet Message Format  |  2002-09-15  |  2.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.180
  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 6.1.180
  11. Problem:    Use of the GUI code for forking is inconsistent.
  12. Solution:   Define MAY_FORK and use it for later #ifdefs. (Ben Fowlwer)
  13. Files:        src/gui.c
  14.  
  15.  
  16. *** ../vim61.179/src/gui.c    Tue Jun  4 20:01:34 2002
  17. --- src/gui.c    Sat Sep 14 14:35:35 2002
  18. ***************
  19. *** 48,55 ****
  20.   gui_start()
  21.   {
  22.       char_u    *old_term;
  23. ! #if defined(UNIX) && !defined(__BEOS__)
  24. !     pid_t    pid = -1;
  25.       int        dofork = TRUE;
  26.   #endif
  27.       static int    recursive = 0;
  28. --- 48,55 ----
  29.   gui_start()
  30.   {
  31.       char_u    *old_term;
  32. ! #if defined(UNIX) && !defined(__BEOS__) && !defined(MACOS_X)
  33. ! # define MAY_FORK
  34.       int        dofork = TRUE;
  35.   #endif
  36.       static int    recursive = 0;
  37. ***************
  38. *** 72,78 ****
  39.       gui.starting = TRUE;
  40.       full_screen = FALSE;
  41.   
  42. ! #if defined(UNIX) && !defined(__BEOS__)
  43.       if (!gui.dofork || vim_strchr(p_go, GO_FORG) || recursive)
  44.       dofork = FALSE;
  45.   #endif
  46. --- 72,78 ----
  47.       gui.starting = TRUE;
  48.       full_screen = FALSE;
  49.   
  50. ! #ifdef MAY_FORK
  51.       if (!gui.dofork || vim_strchr(p_go, GO_FORG) || recursive)
  52.       dofork = FALSE;
  53.   #endif
  54. ***************
  55. *** 98,104 ****
  56.       display_errors();
  57.   #endif
  58.   
  59. ! #if defined(UNIX) && !defined(__BEOS__) && !defined(__QNXNTO__) && !defined(MACOS_X)
  60.       /*
  61.        * Quit the current process and continue in the child.
  62.        * Makes "gvim file" disconnect from the shell it was started in.
  63. --- 98,104 ----
  64.       display_errors();
  65.   #endif
  66.   
  67. ! #if defined(MAY_FORK) && !defined(__QNXNTO__)
  68.       /*
  69.        * Quit the current process and continue in the child.
  70.        * Makes "gvim file" disconnect from the shell it was started in.
  71. ***************
  72. *** 110,115 ****
  73. --- 110,116 ----
  74.       int    pipefd[2];    /* pipe between parent and child */
  75.       int    pipe_error;
  76.       char    dummy;
  77. +     pid_t    pid = -1;
  78.   
  79.       /* Setup a pipe between the child and the parent, so that the parent
  80.        * knows when the child has done the setsid() call and is allowed to
  81. *** ../vim61.179/src/version.c    Mon Sep 16 21:05:55 2002
  82. --- src/version.c    Mon Sep 16 21:10:28 2002
  83. ***************
  84. *** 608,609 ****
  85. --- 608,611 ----
  86.   {   /* Add new patch number below this line */
  87. + /**/
  88. +     180,
  89.   /**/
  90.  
  91. -- 
  92. Managers are like cats in a litter box.  They instinctively shuffle things
  93. around to conceal what they've done.
  94.                 (Scott Adams - The Dilbert principle)
  95.  
  96.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  97. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  98. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  99.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  100.