From ed8c8d44f05f7fd2160252cbe1b2d10cbd6000cf Mon Sep 17 00:00:00 2001 From: zhoukaiqi Date: Sat, 6 Jul 2024 14:34:24 +0800 Subject: [PATCH 3/4] fix threads are still bound after systemctl stop oeaware --- src/plugin_mgr/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin_mgr/main.cpp b/src/plugin_mgr/main.cpp index 5cfb020..9add8ac 100644 --- a/src/plugin_mgr/main.cpp +++ b/src/plugin_mgr/main.cpp @@ -39,7 +39,8 @@ void signal_handler(int signum) { } int main(int argc, char **argv) { - signal(SIGINT, signal_handler); + signal(SIGINT, signal_handler); // ctrl + c + signal(SIGTERM, signal_handler); // systemctl stop std::shared_ptr config = std::make_shared(); if (argc < 2) { ERROR("System need a argument!"); -- 2.33.0