mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
task: don't set default signal in kernal thread
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -82,9 +82,12 @@ void nxtask_start(void)
|
|||||||
TCB_FLAG_TTYPE_PTHREAD);
|
TCB_FLAG_TTYPE_PTHREAD);
|
||||||
|
|
||||||
#ifdef CONFIG_SIG_DEFAULT
|
#ifdef CONFIG_SIG_DEFAULT
|
||||||
/* Set up default signal actions */
|
if ((tcb->cmn.flags & TCB_FLAG_TTYPE_MASK) != TCB_FLAG_TTYPE_KERNEL)
|
||||||
|
{
|
||||||
|
/* Set up default signal actions for NON-kernel thread */
|
||||||
|
|
||||||
nxsig_default_initialize(&tcb->cmn);
|
nxsig_default_initialize(&tcb->cmn);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Execute the start hook if one has been registered */
|
/* Execute the start hook if one has been registered */
|
||||||
|
|||||||
Reference in New Issue
Block a user