From b659c744402290747cd6c66c1f9c75df2064241e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 19 Nov 2019 07:50:46 -0600 Subject: [PATCH] net/netlink/netlink_sockif.c: Netlink sockets may be set to non-blocking. --- net/netlink/netlink_sockif.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/netlink/netlink_sockif.c b/net/netlink/netlink_sockif.c index e3bd730422..f34f659d91 100644 --- a/net/netlink/netlink_sockif.c +++ b/net/netlink/netlink_sockif.c @@ -204,7 +204,9 @@ static int netlink_setup(FAR struct socket *psock, int protocol) static sockcaps_t netlink_sockcaps(FAR struct socket *psock) { - return 0; + /* Permit vfcntl to set socket to non-blocking */ + + return SOCKCAP_NONBLOCKING; } /****************************************************************************