-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closing a tab doesn't terminate its associated process(es) #541
Comments
Was just making new issue, but noticed this one. Environment
Steps to reproduceWatch WindowsTerminal in procexp or something. Open and close tabs. Spawned processes are never killed until WindowsTerminal.exe is. Expected behaviorThe code attempts to close spawned processes with tabs, but there are some refcount leaks on a Actual behaviorReference of newly created tab is given to 2 lambdas, which never die. It seems the API gives back a handle which you're supposed to use to remove the callback, which isn't currently done. |
There's also some process isolation issues that result in console hosts sticking around after WT exits; #970 seeks to fix some of that. |
I want to report that this is still an issue. It is impossible to terminate a misbehaving child process without terminating the terminal in the process. Example situation: I start a wildfly server. After a while it becomes unresponsive. I close the tab, but the process lingers and is not terminated, blocking ports. If I try to end the process via task manager, it also terminates the parent process, effectively closing all my other tabs. Which in turn renders the tab feature pretty much useless. |
@ms-xy This was a bug with a pretty specific root cause more than two years ago now - if you're seeing something similar, it's likely a new bug entirely. Mind filing a new issue? Knowing more about your exact setup might help debug & root-cause what you're seeing. |
When I close a tab (either via Ctrl-W or the close gadget), the underlying processes don't seem to be terminated. For example, this is what task manager shows if I've opened a few tabs and closed them:
At the time I took this screenshot, there was only a single tab open.
The text was updated successfully, but these errors were encountered: