1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Stop uv loop in default signal handler, clean-ups

This commit is contained in:
Alex Hultman 2016-02-20 16:01:12 +01:00 committed by Andy Green
parent 2904de5ff2
commit ecf7f00772

View file

@ -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