Unexpected periodic invocation of ev_check watcher

Nick Zavaritsky mejedi at gmail.com
Thu Mar 12 19:22:51 CET 2015

Dear List,

I have an ev_check watcher in my event loop and it gets invoked approximately every minute or so.
There is no other activity happening and I assume that the loop should just stay idle instead.

Is it the intended behavior?


PS. The code sample.

#include <ev.h>
#include <stdio.h>

void cb(struct ev_loop* loop, struct ev_check* instance, int revents)

int main()
    struct ev_check c;

    ev_check_init(&c, cb);

    ev_check_start(ev_default_loop(0), &c);

    ev_loop(ev_default_loop(0), 0);

    return 0;

More information about the libev mailing list