From 24d85e188367f3e733db2559902648bb3fa08392 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Thu, 17 Oct 2024 07:16:34 -0500 Subject: [PATCH] Rename setup_signal_handling_on_ios to setup_signal_handling_on_ioc --- application_base.cpp | 6 +++--- include/appbase/application_base.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application_base.cpp b/application_base.cpp index e96e0f6..7abe81f 100644 --- a/application_base.cpp +++ b/application_base.cpp @@ -152,7 +152,7 @@ void application_base::wait_for_signal(std::shared_ptr }); } -void application_base::setup_signal_handling_on_ios(boost::asio::io_context& io_ctx, bool startup) { +void application_base::setup_signal_handling_on_ioc(boost::asio::io_context& io_ctx, bool startup) { std::shared_ptr ss = std::make_shared(io_ctx, SIGINT, SIGTERM); #ifdef SIGPIPE ss->add(SIGPIPE); @@ -168,7 +168,7 @@ void application_base::setup_signal_handling_on_ios(boost::asio::io_context& io_ void application_base::startup(boost::asio::io_context& io_ctx) { //during startup, run a second thread to catch SIGINT/SIGTERM/SIGPIPE/SIGHUP boost::asio::io_context startup_thread_io_ctx; - setup_signal_handling_on_ios(startup_thread_io_ctx, true); + setup_signal_handling_on_ioc(startup_thread_io_ctx, true); std::thread startup_thread([&startup_thread_io_ctx]() { startup_thread_io_ctx.run(); }); @@ -191,7 +191,7 @@ void application_base::startup(boost::asio::io_context& io_ctx) { //after startup, shut down the signal handling thread and catch the signals back on main io_context clean_up_signal_thread(); - setup_signal_handling_on_ios(io_ctx, false); + setup_signal_handling_on_ioc(io_ctx, false); #ifdef SIGHUP std::shared_ptr sighup_set(new boost::asio::signal_set(io_ctx, SIGHUP)); diff --git a/include/appbase/application_base.hpp b/include/appbase/application_base.hpp index e8ceaa8..59471d2 100644 --- a/include/appbase/application_base.hpp +++ b/include/appbase/application_base.hpp @@ -342,7 +342,7 @@ class application_base { void print_default_config(std::ostream& os); void wait_for_signal(std::shared_ptr ss); - void setup_signal_handling_on_ios(boost::asio::io_context& io_ctx, bool startup); + void setup_signal_handling_on_ioc(boost::asio::io_context& io_ctx, bool startup); void handle_exception(std::exception_ptr eptr, std::string_view origin); };