From 92066c19239422e9c09c4ccd46d42fd573ce6853 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Wed, 14 Aug 2024 16:20:32 +0200 Subject: 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. --- src/zenserver/config.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/zenserver/config.cpp') 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(ServerOptions.SentryAllowPII)->default_value("false")); + options.add_options()("detach", + "Indicate whether zenserver should detach from parent process group", + cxxopts::value(ServerOptions.Detach)->default_value("true")); // clang-format off options.add_options("logging") -- cgit v1.2.3