libev application stops responding and consumes 100% cpu

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

2014-04-08 11:40 GMT+04:00 Kirill Timofeev <kvt at>:
> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the libev mailing list