Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zombie burying ritual #1264

Open
wants to merge 4 commits into
base: next
Choose a base branch
from
Open

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant