aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoDo <DoDoENT@users.noreply.github.com>2023-07-18 20:03:15 +0200
committerGitHub <noreply@github.com>2023-07-18 21:03:15 +0300
commitf42b164499b6e833ac6b94993abc215fc4a0db17 (patch)
treeead82841520c1d08dffa7ab557c4c265e722552e
parent6e37ddc4702f100d18a4b4869ff89d275284b95b (diff)
downloadneovim-tasks-f42b164499b6e833ac6b94993abc215fc4a0db17.tar.gz
neovim-tasks-f42b164499b6e833ac6b94993abc215fc4a0db17.zip
Extend recursive children killing logic also to Mac (#14)
-rw-r--r--lua/tasks/runner.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/tasks/runner.lua b/lua/tasks/runner.lua
index 4bc277a..132fc37 100644
--- a/lua/tasks/runner.lua
+++ b/lua/tasks/runner.lua
@@ -213,7 +213,7 @@ function runner.cancel_job()
213 213
214 last_job:shutdown(1, 9) 214 last_job:shutdown(1, 9)
215 215
216 if vim.fn.has('win32') == 1 then 216 if vim.fn.has('win32') == 1 or vim.fn.has('mac') == 1 then
217 -- Kill all children. 217 -- Kill all children.
218 for _, pid in ipairs(vim.api.nvim_get_proc_children(last_job.pid)) do 218 for _, pid in ipairs(vim.api.nvim_get_proc_children(last_job.pid)) do
219 vim.loop.kill(pid, 9) 219 vim.loop.kill(pid, 9)