1
0
forked from aniani/vim

patch 7.4.2301

Problem:    MS-Windows: some files remain after testing.
Solution:   Close the channel output file.  Wait for the file handle to be
            closed before deleting the file.
This commit is contained in:
Bram Moolenaar
2016-09-01 18:32:11 +02:00
parent 5c80908ced
commit 641ad6c7ac
3 changed files with 33 additions and 21 deletions

View File

@@ -5210,11 +5210,9 @@ mch_start_job(char *cmd, job_T *job, jobopt_T *options)
job->jv_job_object = jo;
job->jv_status = JOB_STARTED;
if (!use_file_for_in)
CloseHandle(ifd[0]);
if (!use_file_for_out)
CloseHandle(ofd[1]);
if (!use_out_for_err && !use_file_for_err)
CloseHandle(ifd[0]);
CloseHandle(ofd[1]);
if (!use_out_for_err && !use_null_for_err)
CloseHandle(efd[1]);
job->jv_channel = channel;