mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 05:03:35 +08:00
Use SIGCHLD with waitpid(); implemented wait() and waitid()
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5515 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -168,7 +168,10 @@ static int task_assignpid(FAR _TCB *tcb)
|
||||
static inline void task_saveparent(FAR _TCB *tcb)
|
||||
{
|
||||
FAR _TCB *rtcb = (FAR _TCB*)g_readytorun.head;
|
||||
|
||||
DEBUGASSERT(rtcb->nchildren < UINT16_MAX);
|
||||
tcb->parent = rtcb->pid;
|
||||
rtcb->nchildren++;
|
||||
}
|
||||
#else
|
||||
# define task_saveparent(tcb)
|
||||
|
||||
Reference in New Issue
Block a user