mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue