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:
0c0bf4a
)
use compatible_close for sockets
author
Andy Green
<andy.green@linaro.org>
Mon, 21 Oct 2013 22:49:30 +0000
(06:49 +0800)
committer
Andy Green
<andy.green@linaro.org>
Mon, 21 Oct 2013 22:49:30 +0000
(06:49 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index
7e7a7b2
..
b759b39
100644
(file)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-2174,7
+2174,7
@@
libwebsocket_create_context(struct lws_context_creation_info *info)
if (n < 0) {
lwsl_err("ERROR on binding to port %d (%d %d)\n",
info->port, n, errno);
- close(sockfd);
+ c
ompatible_c
lose(sockfd);
goto bail;
}
@@
-2182,7
+2182,7
@@
libwebsocket_create_context(struct lws_context_creation_info *info)
sizeof(struct libwebsocket));
if (wsi == NULL) {
lwsl_err("Out of mem\n");
- close(sockfd);
+ c
ompatible_c
lose(sockfd);
goto bail;
}
memset(wsi, 0, sizeof(struct libwebsocket));