From 4e277a7f6228d36d72b5adb2d925e333eebe169c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 29 Nov 2019 10:01:42 -0600 Subject: [PATCH] sched/signal/sig_dispatch.c: Trivial update to a comment. --- sched/signal/sig_dispatch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sched/signal/sig_dispatch.c b/sched/signal/sig_dispatch.c index 2f226cb1243..5394893160a 100644 --- a/sched/signal/sig_dispatch.c +++ b/sched/signal/sig_dispatch.c @@ -312,13 +312,16 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info) /************************* MASKED SIGNAL HANDLING ************************/ - masked = sigismember(&stcb->sigprocmask, info->si_signo); + masked = (bool)sigismember(&stcb->sigprocmask, info->si_signo); #ifdef CONFIG_LIB_SYSCALL /* Check if the signal is masked OR if the signal is received while we are * processing a system call -- in either case, it will be added to the * list of pending signals. Unmasked user signal actions will be deferred * while we process the system call. + * + * Syscall handlers (and logic-in-general within the OS) should not use + * signal handlers. */ if (masked || (stcb->flags & TCB_FLAG_SYSCALL) != 0)