I'm now experiencing a similar but different issue. I am trying to
ev_unref() a ev_stat watcher just after starting it, expecting
ev_loop() to exit immediately if no other watchers are on it. I'm
using the latest CVS and the problem occurs with and without inotify
(again on Linux 2.6.24).
An example is attached.
// gcc -lm -I. ev_stat_bug2.c -o ev_stat_bug2
// LIBEV_FLAGS=1048576 ./ev_stat_bug2
// ./ev_stat_bug2
#include <stdio.h>
#include <assert.h>
#define EV_STANDALONE 1
#include <ev.c>
static ev_stat foobar;
int main (void)
{
ev_stat_init(&foobar, NULL, "/tmp/foobar", 0.);
ev_stat_start(EV_DEFAULT_ &foobar);
ev_unref(EV_DEFAULT);
ev_loop(EV_DEFAULT_ 0);
}
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev