diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-30 21:45:41 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-30 21:45:41 +0000 |
commit | 09d3b9f21b39de8406ce8a58be8e39e0aa7d52ca (patch) | |
tree | 7455ee02bc25f2f4f94f3f1c5ad12c8be7f77c9a /nuttx/net | |
parent | a46988df026febcc073ba4109b33b4175d3eebf5 (diff) | |
download | px4-nuttx-09d3b9f21b39de8406ce8a58be8e39e0aa7d52ca.tar.gz px4-nuttx-09d3b9f21b39de8406ce8a58be8e39e0aa7d52ca.tar.bz2 px4-nuttx-09d3b9f21b39de8406ce8a58be8e39e0aa7d52ca.zip |
Fix UDP recvfrom timeout logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@417 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net')
-rw-r--r-- | nuttx/net/recvfrom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/net/recvfrom.c b/nuttx/net/recvfrom.c index af28635f7..43d3485af 100644 --- a/nuttx/net/recvfrom.c +++ b/nuttx/net/recvfrom.c @@ -613,6 +613,10 @@ static void recvfrom_udpinterrupt(struct uip_driver_s *dev, /* Report a timeout error */ pstate->rf_result = -EAGAIN; + + /* Wake up the waiting thread */ + + sem_post(&pstate->rf_sem); } #endif /* CONFIG_NET_SOCKOPTS && !CONFIG_DISABLE_CLOCK */ } |