Function rclcpp::uninstall_signal_handlers

Function Documentation

bool rclcpp::uninstall_signal_handlers()

Uninstall the global signal handler for rclcpp.

This function does not necessarily need to be called, but can be used to undo what rclcpp::install_signal_handlers() or rclcpp::init() do with respect to signal handling. If you choose to use it, this function only needs to be run one time. It is implicitly run by rclcpp::shutdown(), and therefore this function does not need to be run manually if rclcpp::shutdown() has already been run.

This function is thread-safe.

Returns:

true if signal handler was uninstalled by this function, false if was not installed.