diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-10 21:32:19 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-10 21:32:19 +0100 |
commit | b3e195cca7b3201b188c1713b64012b1bef4f61f (patch) | |
tree | 807cac065c03984fe15891e8f7a93fb0a19803b8 /src/os_win32.c | |
parent | 7ba3b91e0385c848c773e2f2d803db01730e7786 (diff) | |
download | vim-git-b3e195cca7b3201b188c1713b64012b1bef4f61f.tar.gz |
patch 8.2.0238: MS-Windows: job_stop() results in exit value zerov8.2.0238
Problem: MS-Windows: job_stop() results in exit value zero.
Solution: Call TerminateJobObject() with -1 instead of 0. (Yasuhiro
Matsumoto, closes #5150, closes #5614)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r-- | src/os_win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index 7dc37a111..2594aeea5 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -5384,9 +5384,9 @@ mch_signal_job(job_T *job, char_u *how) { if (job->jv_channel != NULL && job->jv_channel->ch_anonymous_pipe) job->jv_channel->ch_killing = TRUE; - return TerminateJobObject(job->jv_job_object, 0) ? OK : FAIL; + return TerminateJobObject(job->jv_job_object, -1) ? OK : FAIL; } - return terminate_all(job->jv_proc_info.hProcess, 0) ? OK : FAIL; + return terminate_all(job->jv_proc_info.hProcess, -1) ? OK : FAIL; } if (!AttachConsole(job->jv_proc_info.dwProcessId)) |