From 654b4205abf8c1c2d90094ebfef7fd3a67cc5d68 Mon Sep 17 00:00:00 2001 From: neo Date: Sun, 4 Jan 2026 21:14:51 +0900 Subject: [PATCH] Fix tsserver zombie process by calling wait after kill --- src/process/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/process/mod.rs b/src/process/mod.rs index a130091..736be3c 100644 --- a/src/process/mod.rs +++ b/src/process/mod.rs @@ -168,12 +168,17 @@ impl TsserverProcess { .as_ref() .map(|handles| handles.response_rx.clone()) } + + pub fn pid(&self) -> Option { + self.child.as_ref().map(|handles| handles.child.id()) + } } impl Drop for TsserverProcess { fn drop(&mut self) { if let Some(mut handles) = self.child.take() { let _ = handles.child.kill(); + let _ = handles.child.wait(); } } }