Skip to content

Commit ea83bf0

Browse files
committed
patch 7.4.1822
Problem: Redirecting stdout of a channel to "null" doesn't work. (Nicola) Solution: Correct the file descriptor number.
1 parent 4ed6b2e commit ea83bf0

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/os_unix.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5195,7 +5195,7 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
51955195
/* set up stdout for the child */
51965196
if (use_null_for_out && null_fd >= 0)
51975197
{
5198-
close(0);
5198+
close(1);
51995199
ignored = dup(null_fd);
52005200
}
52015201
else
@@ -5206,6 +5206,7 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
52065206
ignored = dup(fd_out[1]);
52075207
close(fd_out[1]);
52085208
}
5209+
52095210
if (null_fd >= 0)
52105211
close(null_fd);
52115212

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ static char *(features[]) =
753753

754754
static int included_patches[] =
755755
{ /* Add new patch number below this line */
756+
/**/
757+
1822,
756758
/**/
757759
1821,
758760
/**/

0 commit comments

Comments
 (0)