projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ef4b2e
)
coverity 83660 plat unix check fcntl return
author
Andy Green
<andy.green@linaro.org>
Sun, 30 Nov 2014 05:02:32 +0000
(13:02 +0800)
committer
Andy Green
<andy.green@linaro.org>
Sun, 30 Nov 2014 05:10:26 +0000
(13:10 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/lws-plat-unix.c
patch
|
blob
|
history
diff --git
a/lib/lws-plat-unix.c
b/lib/lws-plat-unix.c
index
467e394
..
cc1c125
100644
(file)
--- a/
lib/lws-plat-unix.c
+++ b/
lib/lws-plat-unix.c
@@
-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;
}