Repository: microsoft/terminal (language: cpp)

Issue:
wt --help process never exits
### 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.


Discussion / hints:
oh my god I did `ExitThread` instead of `ExitProcess` 🤦 

Fix patch:
diff --git a/src/cascadia/WindowsTerminal/WindowEmperor.cpp b/src/cascadia/WindowsTerminal/WindowEmperor.cpp
index 54d5e2d4f4a..f4cfe9fad3b 100644
--- a/src/cascadia/WindowsTerminal/WindowEmperor.cpp
+++ b/src/cascadia/WindowsTerminal/WindowEmperor.cpp
@@ -123,7 +123,7 @@ bool WindowEmperor::HandleCommandlineArgs()
         if (!res.Message.empty())
         {
             AppHost::s_DisplayMessageBox(res);
-            ExitThread(res.ExitCode);
+            std::quick_exit(res.ExitCode);
         }
     }
 


Test patch: