mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.1822
Problem: Redirecting stdout of a channel to "null" doesn't work. (Nicola) Solution: Correct the file descriptor number.
This commit is contained in:
parent
4ed6b2e2d7
commit
ea83bf06b9
@ -5195,7 +5195,7 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
|
|||||||
/* set up stdout for the child */
|
/* set up stdout for the child */
|
||||||
if (use_null_for_out && null_fd >= 0)
|
if (use_null_for_out && null_fd >= 0)
|
||||||
{
|
{
|
||||||
close(0);
|
close(1);
|
||||||
ignored = dup(null_fd);
|
ignored = dup(null_fd);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -5206,6 +5206,7 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
|
|||||||
ignored = dup(fd_out[1]);
|
ignored = dup(fd_out[1]);
|
||||||
close(fd_out[1]);
|
close(fd_out[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null_fd >= 0)
|
if (null_fd >= 0)
|
||||||
close(null_fd);
|
close(null_fd);
|
||||||
|
|
||||||
|
@ -753,6 +753,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1822,
|
||||||
/**/
|
/**/
|
||||||
1821,
|
1821,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user