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. --- include/modules.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index dd45c6f09..bbbb209b2 100644 --- a/include/modules.h +++ b/include/modules.h @@ -917,8 +917,9 @@ public: /** Called before a server shuts down. * @param reason The reason the server is shutting down. + * @param restarting Whether the server is restarting. */ - virtual void OnShutdown(const std::string& reason); + virtual void OnShutdown(const std::string& reason, bool restarting); /** Called when a local user is attempting to log in to an server operator account. * @param user The user who is attempting to log in. -- cgit v1.3.1-10-gc9f91