diff options
| author | Stefan Boberg <[email protected]> | 2024-08-14 16:20:32 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-08-14 16:20:32 +0200 |
| commit | 92066c19239422e9c09c4ccd46d42fd573ce6853 (patch) | |
| tree | 26b307053e4b4a3b116a05b46834f35ff38f8d7e /src/zenserver/config.cpp | |
| parent | updated Lucas-C/pre-commit-hooks to v1.3.1 to fix compilation on MacOS (#114) (diff) | |
| download | zen-92066c19239422e9c09c4ccd46d42fd573ce6853.tar.xz zen-92066c19239422e9c09c4ccd46d42fd573ce6853.zip | |
added `--detach` option to zenserver (#115)
added `--detach` option to zenserver. When this is passed in with a false value, we do not create a new process group in order to behave more as expected when running with `xmake run zenserver`. Without this change the zenserver process does not receive any signals and won't exit when xmake does, causing processes to linger in the background.
The default behaviour (when run from UE) is unchanged.
Diffstat (limited to 'src/zenserver/config.cpp')
| -rw-r--r-- | src/zenserver/config.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp index 867089ded..b430db629 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -611,6 +611,9 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) options.add_options()("sentry-allow-personal-info", "Allow personally identifiable information in sentry crash reports", cxxopts::value<bool>(ServerOptions.SentryAllowPII)->default_value("false")); + options.add_options()("detach", + "Indicate whether zenserver should detach from parent process group", + cxxopts::value<bool>(ServerOptions.Detach)->default_value("true")); // clang-format off options.add_options("logging") |