net/rpmsg: Don't set POLLHUP if rpmsg channel has not been established
Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
parent
d5d9c501fa
commit
265978d16a
|
@ -950,7 +950,8 @@ static int rpmsg_socket_poll(FAR struct socket *psock,
|
||||||
}
|
}
|
||||||
else /* !_SS_ISCONNECTED(conn->sconn.s_flags) */
|
else /* !_SS_ISCONNECTED(conn->sconn.s_flags) */
|
||||||
{
|
{
|
||||||
if (!conn->ept.rdev || conn->unbind)
|
if ((!conn->ept.rdev || conn->unbind) &&
|
||||||
|
!_SS_INITD(conn->sconn.s_flags))
|
||||||
{
|
{
|
||||||
eventset |= POLLHUP;
|
eventset |= POLLHUP;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue