Terminal process remains on background after exiting it #3155

Closed
opened 2026-01-30 23:14:15 +00:00 by claunia · 2 comments
Owner

Originally created by @hwooo on GitHub (Aug 5, 2019).

Environment

Windows build number: [run "ver" at a command prompt] 10.0.18362.267
Windows Terminal version (if applicable): v0.3.2142.0

Any other software? No

Steps to reproduce

Error 1: CMD

  1. Open Windows Terminal
  2. Open CMD tab
  3. Close Terminal

Error 2: Ubuntu

  1. Open Windows Terminal
  2. Open Ubuntu tab
  3. Input any command
  4. Close Terminal

Actual behavior

Error 1: CMD

pic1

Error 2: Ubuntu

pic3

Terminal process remains on background and especially it occupies CPU resources excessively when after exiting terminal used as CMD.

When I use only PowerShell, terminal process disappears from background process list immediately after exiting terminal.

Originally created by @hwooo on GitHub (Aug 5, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: [run "ver" at a command prompt] 10.0.18362.267 Windows Terminal version (if applicable): v0.3.2142.0 Any other software? No ``` # Steps to reproduce ## Error 1: CMD 1. Open Windows Terminal 2. Open CMD tab 3. Close Terminal ## Error 2: Ubuntu 1. Open Windows Terminal 2. Open Ubuntu tab 3. Input any command 4. Close Terminal # Actual behavior ## Error 1: CMD ![pic1](https://user-images.githubusercontent.com/46282492/62481181-afbbdc00-b7ec-11e9-999b-c1748d4688f6.png) ## Error 2: Ubuntu ![pic3](https://user-images.githubusercontent.com/46282492/62481575-bc8cff80-b7ed-11e9-9a5f-b0c18d2ccd3a.PNG) Terminal process remains on background and especially it occupies CPU resources excessively when after exiting terminal used as CMD. When I use only PowerShell, terminal process disappears from background process list immediately after exiting terminal.
claunia added the Needs-TriageResolution-Duplicate labels 2026-01-30 23:14:15 +00:00
Author
Owner

@dynalz commented on GitHub (Aug 12, 2019):

Indeed this happens to me aswell.
Some scripts I have on python have been running on background without my knowledge after closing out Windows Terminal. I saw them accidentally because logs were being written and I happen to notice.

Quite easy to test running any background process that opens up a port (node API or frontend web dev), in my case, after closing windows terminal http://localhost:8080/ keeps being accessible due to process never shutting down

@dynalz commented on GitHub (Aug 12, 2019): Indeed this happens to me aswell. Some scripts I have on python have been running on background without my knowledge after closing out Windows Terminal. I saw them accidentally because logs were being written and I happen to notice. Quite easy to test running any background process that opens up a port (node API or frontend web dev), in my case, after closing windows terminal http://localhost:8080/ keeps being accessible due to process never shutting down
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 16, 2019):

This looks like another shade of #2232.

@DHowett-MSFT commented on GitHub (Aug 16, 2019): This looks like another shade of #2232.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3155