aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-11-08 13:21:10 +0100
committerGitHub <[email protected]>2023-11-08 13:21:10 +0100
commitc49c093e03bd172189e4b8ab62c312b2ce202f4d (patch)
treec09521120c2419ffa07e1694aa3e8fd1309188ee
parentremoved zstd references (#521) (diff)
downloadzen-c49c093e03bd172189e4b8ab62c312b2ce202f4d.tar.xz
zen-c49c093e03bd172189e4b8ab62c312b2ce202f4d.zip
changed logic around sponsor process monitoring (#522)
with this change, any sponsor is registered synchronously at startup, instead of one second after.
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/zenserver/zenserver.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a7d5bcfcf..038fa1184 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@
- Bugfix: Corrected initialization of block store MaxBlockCount
- Bugfix: Corrected total disk size usage in block store
- Bugfix: Server log files were using the wrong log line prefix due to a mistake when consolidating logging setup code
+- Bugfix: Sponsor processes are now registered synchronously at startup, to close potential race condition in very short-lived subprocesses such as the automated tests
- Improvement: Multithread init and flush of cache bucket for faster startup and exit
- Improvement: Renamed BlockStoreCompactState::AddBlock to BlockStoreCompactState::IncludeBlock for clarity
- Improvement: Added tests for BlockStore::CompactBlocks
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp
index 1a0e1bdde..f9d376c37 100644
--- a/src/zenserver/zenserver.cpp
+++ b/src/zenserver/zenserver.cpp
@@ -537,7 +537,7 @@ ZenServer::Run()
if (m_ProcessMonitor.IsActive())
{
- EnqueueTimer();
+ CheckOwnerPid();
}
if (!m_TestMode)