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:
parent
7ef4b2e1f2
commit
956a08a9c0
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue