mirror of
https://github.com/apache/nuttx.git
synced 2026-09-24 00:42:03 +08:00
net/rpmsg: support POLLHUP when unbind
rpmsg_socket_ns_unbind should notify pollhup when reconnect
Otherwise, uv_poll can't UV_DISCONNECT
eg:
if (revent & POLL_ERROR || revent & POLL_DISCONNECT)
xxxx();
Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
@@ -479,7 +479,7 @@ static void rpmsg_socket_ns_unbind(FAR struct rpmsg_endpoint *ept)
|
||||
conn->unbind = true;
|
||||
rpmsg_socket_post(&conn->sendsem);
|
||||
rpmsg_socket_post(&conn->recvsem);
|
||||
rpmsg_socket_poll_notify(conn, POLLIN | POLLOUT);
|
||||
rpmsg_socket_poll_notify(conn, POLLIN | POLLOUT | POLLHUP | POLLERR);
|
||||
|
||||
nxmutex_unlock(&conn->recvlock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user