1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

coverity 83660 plat unix check fcntl return

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2014-11-30 13:02:32 +08:00
parent 7ef4b2e1f2
commit 956a08a9c0

View file

@ -234,7 +234,8 @@ lws_plat_set_socket_options(struct libwebsocket_context *context, int fd)
#endif
/* We are nonblocking... */
fcntl(fd, F_SETFL, O_NONBLOCK);
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)
return 1;
return 0;
}