From: Kevin Day Date: Sun, 7 Jul 2024 04:33:33 +0000 (-0500) Subject: Bugfix: Replace f_signal_mask() with f_thread_signal_mask(). X-Git-Tag: 0.6.11~32 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=0e1b2986884fed5c886e65095c4e73114582ac5b;p=fll Bugfix: Replace f_signal_mask() with f_thread_signal_mask(). The f_thread_signal_mask() is being used to setup the signals. If that fails, the unmask process is incorrectly using f_signal_mask() when instead f_thread_signal_mask() should be used. --- diff --git a/level_3/controller/c/controller.c b/level_3/controller/c/controller.c index 9a988f5..82e5e34 100644 --- a/level_3/controller/c/controller.c +++ b/level_3/controller/c/controller.c @@ -419,7 +419,7 @@ extern "C" { // If there is an error opening a signal descriptor, then do not handle signals. if (F_status_is_error(status)) { - f_signal_mask(SIG_UNBLOCK, &main->signal.set, 0); + f_thread_signal_mask(SIG_UNBLOCK, &main->signal.set, 0); f_signal_close(&main->signal); }