Skip to content

Commit 3ce4c18

Browse files
authored
chore: changed hardcoded SIGKILL number to enum (#51)
Just a small change. Stumbled across this argument to kill and did not know what '9' meant. So thought the uv.constants may be better to communicate the intent.
1 parent 3a98276 commit 3ce4c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neotest-vstest/mtp/client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function M.create_client(dll_path, on_update, on_log, mtp_env)
111111
"neotest-vstest: MTP process shutdown triggered from client with PID: " .. mtp_process.pid
112112
)
113113
server:shutdown()
114-
mtp_process:kill(9)
114+
mtp_process:kill(vim.uv.constants.SIGKILL)
115115
end,
116116
before_init = function(params)
117117
params.processId = vim.fn.getpid()

0 commit comments

Comments
 (0)