theia
theia copied to clipboard
Closing a Terminal tab doesn't terminate the running process
Bug Description:
If I start a long-running process in a Terminal, then close the Terminal, the process continues running the background. In other words, closing the Terminal does not appear to send the SIGHUP or SIGTERM signal to the process.
As far an I can remember, older versions of Theia's terminal (from a couple years ago) terminated the process when the tab was closed.
Steps to Reproduce:
- Open two Terminal tabs.
- In one them them, start a long-running process, such as the
yes
command. - In the other tab, use
ps -ef
ortop
to see the process running. - Close the Terminal with the long-running process.
- Observe that the process is still running somewhere in the background.
Additional Information
- Operating System: Docker container running Ubuntu 22.04
- Theia Version: 1.46.0
I'm not familiar with the Theia codebase, but if this is an easy fix and someone could point me in the right direction, it's something I could try to tackle.