Patch 7.4.1822
Problem:    Redirecting stdout of a channel to "null" doesn't work. (Nicola)
Solution:   Correct the file descriptor number.
Files:      src/os_unix.c


*** ../vim-7.4.1821/src/os_unix.c       2016-04-26 19:42:39.202426753 +0200
--- src/os_unix.c       2016-05-08 09:40:06.895295543 +0200
***************
*** 5195,5201 ****
        /* set up stdout for the child */
        if (use_null_for_out && null_fd >= 0)
        {
!           close(0);
            ignored = dup(null_fd);
        }
        else
--- 5195,5201 ----
        /* set up stdout for the child */
        if (use_null_for_out && null_fd >= 0)
        {
!           close(1);
            ignored = dup(null_fd);
        }
        else
***************
*** 5206,5211 ****
--- 5206,5212 ----
            ignored = dup(fd_out[1]);
            close(fd_out[1]);
        }
+ 
        if (null_fd >= 0)
            close(null_fd);
  
*** ../vim-7.4.1821/src/version.c       2016-05-07 22:28:49.416042829 +0200
--- src/version.c       2016-05-08 09:38:45.992218878 +0200
***************
*** 755,756 ****
--- 755,758 ----
  {   /* Add new patch number below this line */
+ /**/
+     1822,
  /**/

-- 
People who want to share their religious views with you
almost never want you to share yours with them.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui