This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 87ebdb850c net/pkt: fix issue that set nonblock by fcntl does not take effect 87ebdb850c is described below commit 87ebdb850c38e6a441d3fb37a90c51573389cadb Author: zhanghongyu <zhanghon...@xiaomi.com> AuthorDate: Wed Aug 14 15:24:13 2024 +0800 net/pkt: fix issue that set nonblock by fcntl does not take effect pkt_sockcaps returns SOCKCAP_NONBLOCKING to indicate that pkt supports nonblock configuration. Signed-off-by: zhanghongyu <zhanghon...@xiaomi.com> --- net/pkt/pkt_sockif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/pkt/pkt_sockif.c b/net/pkt/pkt_sockif.c index 888bc624c7..c7339cefd2 100644 --- a/net/pkt/pkt_sockif.c +++ b/net/pkt/pkt_sockif.c @@ -168,7 +168,7 @@ static int pkt_setup(FAR struct socket *psock) static sockcaps_t pkt_sockcaps(FAR struct socket *psock) { - return 0; + return SOCKCAP_NONBLOCKING; } /****************************************************************************