mirror of
https://github.com/apache/nuttx.git
synced 2026-10-01 19:36:28 +00:00
net/pkt: fix scheduling when receiving MSG_ERRQUEUE
Fix a scheduling issue where MSG_ERRQUEUE readiness was not properly waking poll waiters in pkt_netpoll.c. Signed-off-by: wenquan1 <wenquan1@xiaomi.com>
This commit is contained in:
parent
be3446850a
commit
238cfa4a31
1 changed files with 9 additions and 0 deletions
|
|
@ -277,6 +277,15 @@ int pkt_pollsetup(FAR struct socket *psock, FAR struct pollfd *fds)
|
|||
eventset |= POLLWRNORM;
|
||||
}
|
||||
|
||||
/* Check for timestamping data */
|
||||
|
||||
#ifdef CONFIG_NET_TIMESTAMPING
|
||||
if (!IOB_QEMPTY(&conn->errahead))
|
||||
{
|
||||
eventset |= POLLPRI | POLLERR;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Check if any requested events are already in effect */
|
||||
|
||||
poll_notify(&fds, 1, eventset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue