aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Mitchell <[email protected]>2026-02-03 16:51:05 -0800
committerLiam Mitchell <[email protected]>2026-02-03 16:51:05 -0800
commitdca9b8c85d2182fd16b3bcd6c071396c38641fe3 (patch)
tree97546c9e6758d2f4e76edab05a98833ad98a6fbd
parentRespond to RequestApplicationExit() in http server implementations even in no... (diff)
downloadzen-dca9b8c85d2182fd16b3bcd6c071396c38641fe3.tar.xz
zen-dca9b8c85d2182fd16b3bcd6c071396c38641fe3.zip
Revert "Run Windows service as an interactive session, so we correctly respond to RequestApplicationExit when requested to stop by the service manager"
This reverts commit b380c1bac4b738f49cd412697e0a051402e6d171.
-rw-r--r--src/zenutil/windows/windowsservice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenutil/windows/windowsservice.cpp b/src/zenutil/windows/windowsservice.cpp
index 21ee6d153..ebb88b018 100644
--- a/src/zenutil/windows/windowsservice.cpp
+++ b/src/zenutil/windows/windowsservice.cpp
@@ -158,8 +158,6 @@ WindowsService::ServiceMain()
// This call returns when the service has stopped.
// The process should simply terminate when the call returns.
- zen::SetIsInteractiveSession(true);
-
if (!StartServiceCtrlDispatcher(DispatchTable))
{
const DWORD dwError = zen::GetLastError();
@@ -169,6 +167,8 @@ WindowsService::ServiceMain()
// Not actually running as a service
gSvc = nullptr;
+ zen::SetIsInteractiveSession(true);
+
return Run();
}
else