volatile bool need_config_reload = false;
volatile bool exit_now = false;
+volatile bool caught_sig_term = false;
volatile bool caught_sig_usr1 = false;
volatile bool caught_sig_usr2 = false;
volatile bool caught_sig_rtmin1 = false;
*/
void terminate(int param)
{
- updater->get_logger()->print_caught_sigterm();
- exit_now = true;
+ caught_sig_term = true;
} /*lint !e715 */
// Go online - with webcheck
is_online = true;
webcheck_enabled = true;
+ } else if (caught_sig_term)
+ {
+ caught_sig_term = true;
+ updater->get_logger()->print_caught_sigterm();
+
+ exit_now = true;
}
// State handling