Skip to content

Commit

Permalink
fix(libuv): shutdown -> close (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman authored Dec 28, 2022
1 parent 5f82a4e commit 10d3917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/mason-registry/r-languageserver/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ return Pkg.new {
on_spawn = a.scope(function(_, stdio)
local stdin = stdio[1]
async_uv.write(create_install_script(ctx.cwd:get(), source.release))
async_uv.close(stdin)
async_uv.shutdown(stdin)
async_uv.close(stdin)
end),
}
ctx.fs:write_file("server.R", create_server_script(ctx.package:get_install_path()))
Expand Down
2 changes: 1 addition & 1 deletion lua/mason/health/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ local function mk_healthcheck(callback)
on_spawn = a.scope(function(_, stdio)
local stdin = stdio[1]
-- some processes (`sh` for example) will endlessly read from stdin, so we close it immediately
async_uv.close(stdin)
async_uv.shutdown(stdin)
async_uv.close(stdin)
end),
})
:map(parse_version)
Expand Down

0 comments on commit 10d3917

Please sign in to comment.