zhhyu7 commented on code in PR #21418:
URL: https://github.com/apache/nuttx/pull/21418#discussion_r4481043454
##########
net/local/local_netpoll.c:
##########
@@ -310,7 +329,14 @@ int local_pollteardown(FAR struct socket *psock, FAR
struct pollfd_s *fds)
if (conn->lc_proto == SOCK_DGRAM)
{
- return -ENOSYS;
+ /* Only a bound socket was registered with file_poll(). */
+
+ if ((fds->events & POLLIN) != 0 && conn->lc_infile.f_inode != NULL)
+ {
+ return file_poll(&conn->lc_infile, fds, false);
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]