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:
66986b2
)
trac 28 brackets around POLLIN flag test
author
Simon Wulf
<simonwulf.lund@bredband.net>
Sun, 5 May 2013 22:11:53 +0000
(06:11 +0800)
committer
Andy Green
<andy.green@linaro.org>
Sun, 5 May 2013 22:14:03 +0000
(06:14 +0800)
Signed-off-by: Simon Wulf <simonwulf.lund@bredband.net>
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index
579763d
..
983af5e
100644
(file)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-973,7
+973,7
@@
libwebsocket_service_fd(struct libwebsocket_context *context,
/* handle session socket closed */
- if ((!
pollfd->revents & POLLIN
) &&
+ if ((!
(pollfd->revents & POLLIN)
) &&
(pollfd->revents & (POLLERR | POLLHUP))) {
lwsl_debug("Session Socket %p (fd=%d) dead\n",