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 <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
b832638b15
commit
87ebdb850c
@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user