The locking being used in controller_rule_item_print_error() is based on the special case for when fll_error_print() is used.
The fll_error_print() is not being used so do not use the special case locking.
if (print.verbosity == f_console_verbosity_quiet_e) return;
if (status == F_interrupt) return;
- // fll_error_print() automatically locks, so manually handle only the mutex locking and flushing rather than calling controller_lock_print().
- f_thread_mutex_lock(&thread->lock.print);
+ controller_lock_print(print.to, thread);
controller_rule_print_error_cache(print, cache, item);
- flockfile(print.to.stream);
-
controller_unlock_print_flush(print.to, thread);
}
#endif // _di_controller_rule_item_print_error_