]> Kevux Git Server - fll/commitdiff
Bugfix: Replace f_signal_mask() with f_thread_signal_mask().
authorKevin Day <Kevin@kevux.org>
Sun, 7 Jul 2024 04:33:33 +0000 (23:33 -0500)
committerKevin Day <Kevin@kevux.org>
Sun, 7 Jul 2024 04:33:33 +0000 (23:33 -0500)
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.

level_3/controller/c/controller.c

index 9a988f5bea0a3e2f2369aeb2c239bc447587af56..82e5e345c5b6366906d1371e8e68e999a3086002 100644 (file)
@@ -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);
       }