Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit996fc22

Browse files
authored
fix(lsp): avoid pipe leaks if lsp cmd isn't executable (#19717)
The `onexit` handler isn't called if `uv.spawn` doesn't return a handle.
1 parent8b67f37 commit996fc22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎runtime/lua/vim/lsp/rpc.lua‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ local function start(cmd, cmd_args, dispatchers, extra_spawn_params)
340340
end
341341
handle,pid=uv.spawn(cmd,spawn_params,onexit)
342342
ifhandle==nilthen
343+
stdin:close()
344+
stdout:close()
345+
stderr:close()
343346
localmsg=string.format('Spawning language server with cmd: `%s` failed',cmd)
344347
ifstring.match(pid,'ENOENT')then
345348
msg=msg

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp