changeset 9074:3aab62b76363 v7.4.1822

commit https://github.com/vim/vim/commit/ea83bf06b92baeb6d68a10d8e8ffad289d31dae2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 8 09:40:51 2016 +0200 patch 7.4.1822 Problem: Redirecting stdout of a channel to "null" doesn't work. (Nicola) Solution: Correct the file descriptor number.
author Christian Brabandt <cb@256bit.org>
date Sun, 08 May 2016 09:45:04 +0200
parents b7678a70b23e
children c2802b7a6ba6
files src/os_unix.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5195,7 +5195,7 @@ mch_start_job(char **argv, job_T *job, j
 	/* set up stdout for the child */
 	if (use_null_for_out && null_fd >= 0)
 	{
-	    close(0);
+	    close(1);
 	    ignored = dup(null_fd);
 	}
 	else
@@ -5206,6 +5206,7 @@ mch_start_job(char **argv, job_T *job, j
 	    ignored = dup(fd_out[1]);
 	    close(fd_out[1]);
 	}
+
 	if (null_fd >= 0)
 	    close(null_fd);
 
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1822,
+/**/
     1821,
 /**/
     1820,