Allow flycheck process to exit gracefully

Assuming it isn't cancelled. Closes #17902.

The only place CommandHandle::join is used is when the flycheck command
finishes, so this commit changes the behavior of the method itself.
This commit is contained in:
Tyler Mandry 2024-08-15 15:18:15 -07:00
parent 91aa3f46b3
commit da34676104

View file

@ -148,7 +148,6 @@ impl<T: ParseFromLine> CommandHandle<T> {
}
pub(crate) fn join(mut self) -> io::Result<()> {
let _ = self.child.0.kill();
let exit_status = self.child.0.wait()?;
let (read_at_least_one_message, error) = self.thread.join()?;
if read_at_least_one_message || exit_status.success() {