summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/task_create.c')
-rw-r--r--nuttx/sched/task_create.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/sched/task_create.c b/nuttx/sched/task_create.c
index fe449b85f..daf42af2f 100644
--- a/nuttx/sched/task_create.c
+++ b/nuttx/sched/task_create.c
@@ -308,8 +308,10 @@ STATUS _task_init(FAR _TCB *tcb, const char *name, int priority,
/* Initialize other (non-zero) elements of the TCB */
+#ifndef CONFIG_DISABLE_SIGNALS
tcb->sigprocmask = ALL_SIGNAL_SET;
- tcb->task_state = TSTATE_TASK_INVALID;
+#endif
+ tcb->task_state = TSTATE_TASK_INVALID;
/* Initialize the processor-specific portion of the TCB */