task: don't set default signal in kernal thread

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-01-25 12:23:37 +08:00 committed by Masayuki Ishikawa
parent 0c1f63625a
commit e9f17947b7

View File

@ -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 */