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:
a3a0792
)
Stop uv loop in default signal handler, clean-ups
author
Alex Hultman
<alexhultman@localhost.localdomain>
Sat, 20 Feb 2016 15:01:12 +0000
(16:01 +0100)
committer
Andy Green
<andy.green@linaro.org>
Sat, 20 Feb 2016 15:06:32 +0000
(23:06 +0800)
lib/libuv.c
patch
|
blob
|
history
diff --git
a/lib/libuv.c
b/lib/libuv.c
index
6925c2d
..
a9998df
100644
(file)
--- a/
lib/libuv.c
+++ b/
lib/libuv.c
@@
-43,7
+43,7
@@
lws_accept_cb(uv_poll_t *watcher, int status, int revents)
eventfd.fd = watcher->io_watcher.fd;
eventfd.events = 0;
- eventfd.revents = 0;
//EV_NONE;
+ eventfd.revents = 0;
if (revents & UV_READABLE) {
eventfd.events |= LWS_POLLIN;
eventfd.revents |= LWS_POLLIN;
@@
-58,7
+58,7
@@
lws_accept_cb(uv_poll_t *watcher, int status, int revents)
LWS_VISIBLE void
lws_uv_sigint_cb(uv_loop_t *loop, uv_signal_t *watcher, int revents)
{
-
//ev_break(loop, EVBREAK_ALL
);
+
uv_stop(loop
);
}
LWS_VISIBLE int