From 4d043835b8104f879292d2460d85a12b4f4a2985 Mon Sep 17 00:00:00 2001 From: John McPherson Date: Wed, 5 Nov 2025 14:18:38 -0800 Subject: [PATCH] Unregister signal handler --- src/AppInstallerCLICore/ShutdownMonitoring.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AppInstallerCLICore/ShutdownMonitoring.cpp b/src/AppInstallerCLICore/ShutdownMonitoring.cpp index cb581116ec..c7122bf66f 100644 --- a/src/AppInstallerCLICore/ShutdownMonitoring.cpp +++ b/src/AppInstallerCLICore/ShutdownMonitoring.cpp @@ -101,6 +101,8 @@ namespace AppInstaller::ShutdownMonitoring TerminationSignalHandler::~TerminationSignalHandler() { + SetConsoleCtrlHandler(StaticCtrlHandlerFunction, FALSE); + // std::thread requires that any managed thread (joinable) be joined or detached before destructing if (m_windowThread.joinable()) {