From ebcce68b6095ca9766641ce5dc00aae01d61de06 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 19 Jun 2026 16:25:36 +0100 Subject: Move server restart logic to the core. - Properly clean up the process with Cleanup() instead of using - DieRestart. - Use close_range on modern Linux instead of the CLOEXEC hack. --- modules/spanningtree/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/spanningtree/main.cpp') diff --git a/modules/spanningtree/main.cpp b/modules/spanningtree/main.cpp index 5cd582fe0..6a3bf5495 100644 --- a/modules/spanningtree/main.cpp +++ b/modules/spanningtree/main.cpp @@ -854,7 +854,7 @@ void ModuleSpanningTree::OnMode(User* source, User* u, Channel* c, const Modes:: } } -void ModuleSpanningTree::OnShutdown(const std::string& reason) +void ModuleSpanningTree::OnShutdown(const std::string& reason, bool restarting) { const TreeServer::ChildServers& children = Utils->TreeRoot->GetChildren(); while (!children.empty()) -- cgit v1.3.1-10-gc9f91