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;
|
||||
|
||||
errout_with_errno:
|
||||
errno = err;
|
||||
set_errno(err);
|
||||
errout:
|
||||
sched_unlock();
|
||||
return ERROR;
|
||||
|
|
Loading…
Reference in New Issue