9
0
Fork 0

Signal mask is now inherited by both child tasks and threads; this has the side-effect of changing the initia

l state of all signals from blocked to unblocked.


git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@173 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2007-03-29 13:34:37 +00:00
parent 1826d75280
commit 90d6e4a7eb
1 changed files with 9 additions and 2 deletions

View File

@ -187,11 +187,18 @@ STATUS task_schedsetup(FAR _TCB *tcb, int priority,
tcb->start = start;
tcb->entry.main = main;
/* Initialize other (non-zero) elements of the TCB */
/* exec() and pthread_create() inherit the signal mask of the
* parent thread. I suppose that task_create() should as well.
*/
#ifndef CONFIG_DISABLE_SIGNALS
tcb->sigprocmask = ALL_SIGNAL_SET;
(void)sigprocmask(SIG_SETMASK, NULL, &tcb->sigprocmask);
#endif
/* Initialize the task state. It does not get a valid state
* until it is activated.
*/
tcb->task_state = TSTATE_TASK_INVALID;
/* Initialize the processor-specific portion of the TCB */