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:
patacongo 2012-07-28 18:38:13 +00:00
parent b68201facb
commit cc7c05960e
1 changed files with 1 additions and 1 deletions

View File

@ -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;