summaryrefslogtreecommitdiff
path: root/nuttx/sched/sig_timedwait.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-14 19:22:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-14 19:22:32 +0000
commit84cd4c9f496ed927cac9c8d1cfab0c9747bbf85a (patch)
tree45a3ce8d73b15e96d13ef6a48171a61a1a8449b8 /nuttx/sched/sig_timedwait.c
parentf3c15e2b0508635898c2c0fcf1564394d8aa8cfc (diff)
downloadpx4-nuttx-84cd4c9f496ed927cac9c8d1cfab0c9747bbf85a.tar.gz
px4-nuttx-84cd4c9f496ed927cac9c8d1cfab0c9747bbf85a.tar.bz2
px4-nuttx-84cd4c9f496ed927cac9c8d1cfab0c9747bbf85a.zip
Finish dup logic for open files; fix bug in sigtimedwait(), would return wrong signo value if the signal was already pending
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5517 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sig_timedwait.c')
-rw-r--r--nuttx/sched/sig_timedwait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/sig_timedwait.c b/nuttx/sched/sig_timedwait.c
index b07b8f2a1..f8c619b21 100644
--- a/nuttx/sched/sig_timedwait.c
+++ b/nuttx/sched/sig_timedwait.c
@@ -228,7 +228,7 @@ int sigtimedwait(FAR const sigset_t *set, FAR struct siginfo *info,
/* The return value is the number of the signal that awakened us */
- ret = info->si_signo;
+ ret = sigpend->info.si_signo;
}
/* We will have to wait for a signal to be posted to this task. */