summaryrefslogtreecommitdiffstats
path: root/configd
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2021-11-15 13:13:21 +0000
committerArne H Juul <arnej@yahooinc.com>2021-11-15 13:13:21 +0000
commit159dc93308eccd375ea33f3bf6d3d6ab1f5813fc (patch)
treee243dc1104933301fb2778db41575c7741598373 /configd
parent776f0ec4a9ddc44e492a7eeb9f82f914bbdf4709 (diff)
ignore requested stack sizes
* for C++ threads only * triggered by feature flag, by default use old behavior
Diffstat (limited to 'configd')
-rw-r--r--configd/src/apps/sentinel/manager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/manager.cpp b/configd/src/apps/sentinel/manager.cpp
index 631f63febd5..ffa9c9281fa 100644
--- a/configd/src/apps/sentinel/manager.cpp
+++ b/configd/src/apps/sentinel/manager.cpp
@@ -79,6 +79,11 @@ Manager::doConfigure()
LOG_ASSERT(_env.configOwner().hasConfig());
const SentinelConfig& config(_env.configOwner().getConfig());
+ if (config.ignoreRequestedStackSizes) {
+ setenv("VESPA_IGNORE_REQUESTED_STACK_SIZES", "true", 1);
+ } else {
+ unsetenv("VESPA_IGNORE_REQUESTED_STACK_SIZES");
+ }
_env.rpcPort(config.port.rpc);
_env.statePort(config.port.telnet);