aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_system.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-06 12:56:19 +0800
committerGitHub <noreply@github.com>2023-07-06 12:56:19 +0800
commit2afb04758c341e17c70b8d2e3869c901c8cdb7d2 (patch)
tree8a1fb611ce2319e552fe3331b58ffaa4712d652e /runtime/lua/vim/_system.lua
parent25e62697c32e43d978e43776f9a01cd62bfe83be (diff)
downloadrneovim-2afb04758c341e17c70b8d2e3869c901c8cdb7d2.tar.gz
rneovim-2afb04758c341e17c70b8d2e3869c901c8cdb7d2.tar.bz2
rneovim-2afb04758c341e17c70b8d2e3869c901c8cdb7d2.zip
fix(vim.system): close check handle (#24270)
Fix hang after running vim.system() with sanitizers.
Diffstat (limited to 'runtime/lua/vim/_system.lua')
-rw-r--r--runtime/lua/vim/_system.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/_system.lua b/runtime/lua/vim/_system.lua
index eadf801a31..ff566866c0 100644
--- a/runtime/lua/vim/_system.lua
+++ b/runtime/lua/vim/_system.lua
@@ -287,6 +287,7 @@ function M.run(cmd, opts, on_exit)
end
end
check:stop()
+ check:close()
state.done = true
state.result = {