task: don't set default signal in kernal thread
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
0c1f63625a
commit
e9f17947b7
@ -82,9 +82,12 @@ void nxtask_start(void)
|
||||
TCB_FLAG_TTYPE_PTHREAD);
|
||||
|
||||
#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
|
||||
|
||||
/* Execute the start hook if one has been registered */
|
||||
|
Loading…
Reference in New Issue
Block a user