jturnsek commented on code in PR #8728:
URL: https://github.com/apache/nuttx/pull/8728#discussion_r1126996314
##########
net/local/local_sockif.c:
##########
@@ -833,7 +833,7 @@ static int local_close(FAR struct socket *psock)
static int local_ioctl(FAR struct socket *psock, int cmd, unsigned long arg)
{
FAR struct local_conn_s *conn;
- int ret = OK;
+ int ret = -ENOTTY;
Review Comment:
Yes, is a listen socket. NNG code is calling (void) fcntl(fd, F_SETFL,
O_NONBLOCK) to set the socket in non block mode. You can see from callstack
above the call to fcntl. When local_ioctl returns ENOTTY, netdev_file_ioctl is
called next, which is then responsible to set s_flags for the socket. In case
of OK, this doesn't happen.
--
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]