mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-30 05:40:45 +00:00
net/socket: recover POLLSOCK and keep polling directly by socket
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
0e1148cf1d
commit
3708b6e478
1 changed files with 1 additions and 1 deletions
|
|
@ -744,7 +744,7 @@ static int usrsock_rpmsg_prepare_poll(struct usrsock_rpmsg_s *priv,
|
|||
if (priv->pfds[i].ptr)
|
||||
{
|
||||
pfds[count] = priv->pfds[i];
|
||||
pfds[count++].events |= POLLERR | POLLHUP | POLLFILE;
|
||||
pfds[count++].events |= POLLERR | POLLHUP | POLLSOCK;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue