Skip to content

Commit 87ebdb8

Browse files
zhhyu7xiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent b832638 commit 87ebdb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/pkt/pkt_sockif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static int pkt_setup(FAR struct socket *psock)
168168

169169
static sockcaps_t pkt_sockcaps(FAR struct socket *psock)
170170
{
171-
return 0;
171+
return SOCKCAP_NONBLOCKING;
172172
}
173173

174174
/****************************************************************************

0 commit comments

Comments
 (0)