diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-28 18:38:13 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-28 18:38:13 +0000 |
commit | 10364c669f75885fccf912b695a221a51a0f69e5 (patch) | |
tree | bdfda0ecbd7119b9c3c607e95c9990b75fadf81b /nuttx/sched | |
parent | 3f57f313a16cc756b46e2f07e1e8ef99a9dc174e (diff) | |
download | px4-firmware-10364c669f75885fccf912b695a221a51a0f69e5.tar.gz px4-firmware-10364c669f75885fccf912b695a221a51a0f69e5.tar.bz2 px4-firmware-10364c669f75885fccf912b695a221a51a0f69e5.zip |
Lock the scheduler when starting NSH builtin applications to eliminate race conditions
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4988 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched')
-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; |