Mercurial > vim
diff src/os_win32.c @ 10060:cf9e550f17f6 v7.4.2301
commit https://github.com/vim/vim/commit/641ad6c7ac7367f95fd927b8efa4bf74ddb9ccf3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 1 18:32:11 2016 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 01 Sep 2016 18:45:07 +0200 |
parents | 4aead6a9b7a9 |
children | 175b1116f96a |
line wrap: on
line diff
--- a/src/os_win32.c +++ b/src/os_win32.c @@ -5210,11 +5210,9 @@ mch_start_job(char *cmd, job_T *job, job 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;