diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-28 18:38:13 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-28 18:38:13 +0000 |
commit | f29332dabb08e793f12bfaaf49d851052f3d8bb0 (patch) | |
tree | bdfda0ecbd7119b9c3c607e95c9990b75fadf81b /nuttx | |
parent | 51f1a88cb89e90f522a94c1dfe5ae16f17465121 (diff) | |
download | px4-nuttx-f29332dabb08e793f12bfaaf49d851052f3d8bb0.tar.gz px4-nuttx-f29332dabb08e793f12bfaaf49d851052f3d8bb0.tar.bz2 px4-nuttx-f29332dabb08e793f12bfaaf49d851052f3d8bb0.zip |
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
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/sched/sched_waitpid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/sched_waitpid.c b/nuttx/sched/sched_waitpid.c index 9be622311..e8e2f61a2 100644 --- a/nuttx/sched/sched_waitpid.c +++ b/nuttx/sched/sched_waitpid.c @@ -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; |