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:
3278872
)
robustness server dont exit server on accept problems
author
Andy Green
<andy.green@linaro.org>
Wed, 16 Jan 2013 03:43:53 +0000
(11:43 +0800)
committer
Andy Green
<andy.green@linaro.org>
Wed, 16 Jan 2013 03:43:53 +0000
(11:43 +0800)
Error message corrected to %s as well
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
bbbbe49
..
6d9f311
100644
(file)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-1651,8
+1651,8
@@
libwebsocket_service_fd(struct libwebsocket_context *context,
accept_fd = accept(pollfd->fd, (struct sockaddr *)&cli_addr,
&clilen);
if (accept_fd < 0) {
- lwsl_warn("ERROR on accept: %
d
\n", strerror(errno));
-
return -1
;
+ lwsl_warn("ERROR on accept: %
s
\n", strerror(errno));
+
break
;
}
/* Disable Nagle */