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
@ -744,7 +744,7 @@ static int usrsock_rpmsg_prepare_poll(struct usrsock_rpmsg_s *priv,
|
|||||||
if (priv->pfds[i].ptr)
|
if (priv->pfds[i].ptr)
|
||||||
{
|
{
|
||||||
pfds[count] = priv->pfds[i];
|
pfds[count] = priv->pfds[i];
|
||||||
pfds[count++].events |= POLLERR | POLLHUP | POLLFILE;
|
pfds[count++].events |= POLLERR | POLLHUP | POLLSOCK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user