From a1fa20665be4043912bf73affc754a2b59112417 Mon Sep 17 00:00:00 2001 From: hantianfeng Date: Thu, 30 May 2024 16:39:47 +0800 Subject: [PATCH] Fix compilation error under macos, close #5336 --- src/server/master.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/master.cc b/src/server/master.cc index e41d8fa20d1..f4b175aa610 100644 --- a/src/server/master.cc +++ b/src/server/master.cc @@ -907,6 +907,7 @@ bool Server::signal_handler_read_message() { return true; } +#ifdef SIGRTMIN bool Server::signal_handler_reopen_logger() { uint32_t i; Worker *worker; @@ -920,6 +921,7 @@ bool Server::signal_handler_reopen_logger() { sw_logger()->reopen(); return true; } +#endif void Server::stop_master_thread() { Reactor *reactor = SwooleTG.reactor;