From 7054695117581bdb0183b8d27d8d82b4a2ac8958 Mon Sep 17 00:00:00 2001 From: takuto Date: Fri, 22 Mar 2024 02:28:23 +0900 Subject: [PATCH] fix(process): return exit code instead of signal (#13) --- lua/nio/process.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nio/process.lua b/lua/nio/process.lua index 7abc378..655e59f 100644 --- a/lua/nio/process.lua +++ b/lua/nio/process.lua @@ -93,7 +93,7 @@ function nio.process.run(opts) verbatim = opts.verbatim, detached = opts.detached, hide = opts.hide, - }, function(_, code) + }, function(code, _) exit_code_future.set(code) end)