net/socket: recover POLLSOCK and keep polling directly by socket

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-03-01 17:52:43 +08:00 committed by Xiang Xiao
parent 0e1148cf1d
commit 3708b6e478

View File

@ -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;
}
}