Apply the same anti-race improvements implemented on the non-threaded signal checker to the threaded signal checker.
Still check for a negative id to prevent the signal message from being printed more than once.
#if !defined(_di_control_signal_check_) && !defined(_di_thread_support_)
f_status_t control_signal_check(control_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);