Skip to content

Commit

Permalink
Removed errant proc.kill()
Browse files Browse the repository at this point in the history
  • Loading branch information
rben01 committed Nov 21, 2024
1 parent c678b0f commit 9c65477
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lsp/lsp-harness/src/jsonrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ impl Server {
/// exhausting the PID pool when thousands of servers are created.
pub fn die(mut self) -> Result<()> {
self.shutdown()?;
self.proc.kill()?;
self.proc.wait()?; // force cleanup of process (kill alone is insufficient)
self.proc.wait()?;
Ok(())
}

Expand Down

0 comments on commit 9c65477

Please sign in to comment.