wt --help process never exits #19973

Closed
opened 2026-01-31 06:59:05 +00:00 by claunia · 2 comments
Owner

Originally created by @gurnec on GitHub (May 25, 2023).

Windows Terminal version

1.18.1421.0

Windows build number

10.0.22621.0

Other Software

No response

Steps to reproduce

Run wt --help or wt -v and then close the resulting window. (The compatibility.allowHeadless setting doesn't appear to change anything.)

Expected Behavior

The WindowsTerminal.exe process exits.

Actual Behavior

The help/version window closes, but the process remains running.

Originally created by @gurnec on GitHub (May 25, 2023). ### Windows Terminal version 1.18.1421.0 ### Windows build number 10.0.22621.0 ### Other Software _No response_ ### Steps to reproduce Run `wt --help` or `wt -v` and then close the resulting window. (The `compatibility.allowHeadless` setting doesn't appear to change anything.) ### Expected Behavior The `WindowsTerminal.exe` process exits. ### Actual Behavior The help/version window closes, but the process remains running.
claunia added the Needs-TriageIssue-BugIn-PR labels 2026-01-31 06:59:05 +00:00
Author
Owner

@zadjii-msft commented on GitHub (May 25, 2023):

oh my god I did ExitThread instead of ExitProcess 🤦

@zadjii-msft commented on GitHub (May 25, 2023): oh my god I did `ExitThread` instead of `ExitProcess` 🤦
Author
Owner

@gurnec commented on GitHub (May 25, 2023):

Hey, at least it was an easy fix! Thanks!

@gurnec commented on GitHub (May 25, 2023): Hey, at least it was an easy fix! Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19973