aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/windows/service.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-05-11 16:54:16 +0200
committerGitHub <[email protected]>2023-05-11 16:54:16 +0200
commit1250f1c71c3a734a7f04bc029516733f9e87ff27 (patch)
tree0c61b42a409816219d0cc74b577fead9094efd35 /src/zenserver/windows/service.cpp
parentallow early logging (#292) (diff)
downloadzen-1250f1c71c3a734a7f04bc029516733f9e87ff27.tar.xz
zen-1250f1c71c3a734a7f04bc029516733f9e87ff27.zip
Gracefully exit if Ctrl-C is pressed (#293)
* Feature: Gracefully exit if Ctrl-C is pressed * Bugfix: Return error code on exit as set by application * changelog
Diffstat (limited to 'src/zenserver/windows/service.cpp')
-rw-r--r--src/zenserver/windows/service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/windows/service.cpp b/src/zenserver/windows/service.cpp
index 89bacab0b..21116f1c4 100644
--- a/src/zenserver/windows/service.cpp
+++ b/src/zenserver/windows/service.cpp
@@ -179,7 +179,7 @@ WindowsService::ServiceMain()
zen::SetIsInteractiveSession(false);
- return 0;
+ return zen::ApplicationExitCode();
}
int