LanguageClient-neovim icon indicating copy to clipboard operation
LanguageClient-neovim copied to clipboard

Zombie burying ritual

Open ulidtko opened this issue 2 years ago • 0 comments

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

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.

ulidtko avatar Oct 31 '23 20:10 ulidtko