To: vim_dev@googlegroups.com Subject: Patch 7.4.1822 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///