mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
54cdd8c269
commit
3fa55fb72e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue