Skip to content

Conversation

@ulidtko
Copy link

@ulidtko ulidtko commented Oct 31, 2023

I've noticed LanguageClient-neovim accumulates zombies on LSP-server restarts... 👻

Classically, whenever that happens — it means the parent process doesn't respect its duty to at least read out the exit-code of children processes that die.

Here's a fix by means of keeping track of the spawned Child process instead of its u32 PID. IIRC, it wasn't possible to construct a Child from bare PID for that child.try_wait() call. See code.

Forgetting it here is premature, and will leak the server process. Instead, let on_server_crash() handle the cleanup & deal with zombies.
The extra-verbose dumps of pages and pages of user-generated data *per message* simply don't belong at INFO loglevel, killing it's usability.
ulidtko added a commit to ulidtko/versioned-configs that referenced this pull request Mar 6, 2024
ulidtko added a commit to ulidtko/versioned-configs that referenced this pull request Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant