You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/07/23 05:16:57 UTC

[incubator-nuttx] 04/05: rpmsg_socket: defalut set POLLERR POLLHUP to events

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 9c106c1bdca588ae53174035ff057e5695e02ca6
Author: ligd <li...@xiaomi.com>
AuthorDate: Thu Jul 7 18:32:51 2022 +0800

    rpmsg_socket: defalut set POLLERR POLLHUP to events
    
    Signed-off-by: ligd <li...@xiaomi.com>
---
 net/rpmsg/rpmsg_sockif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/rpmsg/rpmsg_sockif.c b/net/rpmsg/rpmsg_sockif.c
index 096e6072b9..67070b86f1 100644
--- a/net/rpmsg/rpmsg_sockif.c
+++ b/net/rpmsg/rpmsg_sockif.c
@@ -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)
             {