mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
sched/signal/sig_dispatch.c: Trivial update to a comment.
This commit is contained in:
@@ -312,13 +312,16 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info)
|
|||||||
|
|
||||||
/************************* MASKED SIGNAL HANDLING ************************/
|
/************************* MASKED SIGNAL HANDLING ************************/
|
||||||
|
|
||||||
masked = sigismember(&stcb->sigprocmask, info->si_signo);
|
masked = (bool)sigismember(&stcb->sigprocmask, info->si_signo);
|
||||||
|
|
||||||
#ifdef CONFIG_LIB_SYSCALL
|
#ifdef CONFIG_LIB_SYSCALL
|
||||||
/* Check if the signal is masked OR if the signal is received while we are
|
/* 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
|
* processing a system call -- in either case, it will be added to the
|
||||||
* list of pending signals. Unmasked user signal actions will be deferred
|
* list of pending signals. Unmasked user signal actions will be deferred
|
||||||
* while we process the system call.
|
* 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)
|
if (masked || (stcb->flags & TCB_FLAG_SYSCALL) != 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user