rpmsg_socket: defalut set POLLERR POLLHUP to events

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-07-07 18:32:51 +08:00 committed by Petro Karashchenko
parent ba990619ed
commit 9c106c1bdc

View File

@ -216,7 +216,7 @@ static void rpmsg_socket_pollnotify(FAR struct rpmsg_socket_conn_s *conn,
if (fds)
{
fds->revents |= (fds->events & eventset);
fds->revents |= ((fds->events | POLLERR | POLLHUP) & eventset);
if (fds->revents != 0)
{