terminal: Properly kill child process on terminal exit (#41562)

Release Notes:

- Fixed terminal processes occasionally leaking

Co-authored by: Jakub <jakub@zed.dev>
94ba24daddLukas Wirth committed on 10/30/2025, 1:40:31 PM· committed by GitHubparent046b43f
1 file changedLine totals unavailable