libev application stops responding and consumes 100% cpu

Konstantin Olkhovskiy lupus at oxnull.net
Tue Apr 8 09:49:30 CEST 2014


2014-04-08 11:40 GMT+04:00 Kirill Timofeev <kvt at hulu.com>:
>
> Could you please point me to code example or documentation regarding
> current best practice for keeping event loop running forever?

    while (1) {
>         ev_loop(loop, 0);
>     }
>

ev_loop will run on it's own until it has nothing to do (i.e. no watchers
active) with default flags. I do not understand the purpose of infinite
while loop around it.


-- 
Regards,
Konstantin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20140408/9c3aad43/attachment.html>


More information about the libev mailing list