Lock the scheduler when starting NSH builtin applications to eliminate race conditions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4988 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
b68201facb
commit
cc7c05960e
@ -238,7 +238,7 @@ pid_t waitpid(pid_t pid, int *stat_loc, int options)
|
|||||||
return pid;
|
return pid;
|
||||||
|
|
||||||
errout_with_errno:
|
errout_with_errno:
|
||||||
errno = err;
|
set_errno(err);
|
||||||
errout:
|
errout:
|
||||||
sched_unlock();
|
sched_unlock();
|
||||||
return ERROR;
|
return ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user