From 7775e53c031e0aa9cfb6102061b895879a1ea2e3 Mon Sep 17 00:00:00 2001 From: Tomoya Fujita Date: Thu, 4 Dec 2025 18:00:45 +0900 Subject: [PATCH] No messages come from signal handler. (#580) Signed-off-by: Tomoya Fujita (cherry picked from commit 6bb22d7f910958461b3faab179162b34cf76f939) --- .../test_sigint_handler_before_shutdown__expected_output.txt | 2 +- .../test_sigterm_handler_before_shutdown__expected_output.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test_rclcpp/test/expected_outputs/test_sigint_handler_before_shutdown__expected_output.txt b/test_rclcpp/test/expected_outputs/test_sigint_handler_before_shutdown__expected_output.txt index 1a0fa7e2..77827bbf 100644 --- a/test_rclcpp/test/expected_outputs/test_sigint_handler_before_shutdown__expected_output.txt +++ b/test_rclcpp/test/expected_outputs/test_sigint_handler_before_shutdown__expected_output.txt @@ -1,8 +1,8 @@ [INFO] [test_signal_handler]: Registered custom signal handler. [INFO] [test_signal_handler]: Called rclcpp::init. [INFO] [test_signal_handler]: Waiting to give an opportunity for interrupt... -[INFO] [rclcpp]: signal_handler(signum=2) [INFO] [test_signal_handler]: Custom sigint handler called. +[INFO] [rclcpp]: signal_handler(SIGINT/SIGTERM) [INFO] [test_signal_handler]: Calling rclcpp::shutdown... [INFO] [test_signal_handler]: Called rclcpp::shutdown. [INFO] [test_signal_handler]: Waiting to give an opportunity for interrupt... diff --git a/test_rclcpp/test/expected_outputs/test_sigterm_handler_before_shutdown__expected_output.txt b/test_rclcpp/test/expected_outputs/test_sigterm_handler_before_shutdown__expected_output.txt index b954a973..52eaa074 100644 --- a/test_rclcpp/test/expected_outputs/test_sigterm_handler_before_shutdown__expected_output.txt +++ b/test_rclcpp/test/expected_outputs/test_sigterm_handler_before_shutdown__expected_output.txt @@ -1,8 +1,8 @@ [INFO] [test_sigterm_handler]: Registered custom signal handler. [INFO] [test_sigterm_handler]: Called rclcpp::init. [INFO] [test_sigterm_handler]: Waiting to give an opportunity for interrupt... -[INFO] [rclcpp]: signal_handler(signum=15) [INFO] [test_sigterm_handler]: Custom sigterm handler called. +[INFO] [rclcpp]: signal_handler(SIGINT/SIGTERM) [INFO] [test_sigterm_handler]: Calling rclcpp::shutdown... [INFO] [test_sigterm_handler]: Called rclcpp::shutdown. [INFO] [test_sigterm_handler]: Waiting to give an opportunity for interrupt...