enki / libev

Full-featured high-performance event loop loosely modelled after libevent
http://software.schmorp.de/pkg/libev
Other
1.64k stars 446 forks source link

ev_io_start run only the first time #1

Open defeden opened 6 years ago

defeden commented 6 years ago

I watch a file via inotify, when it is updated, i open it via ev_io_init(..), and ev_io_start(); when all data is read, i close the file ev_io_stop(..), close(fd)

if a other inotify event is comming, when i open the file with: ev_io_init(..), and ev_io_start();

in this time, the callback is not called, i need to call it explicitly via ev_invoke(...); but this is a bad solution, if the file is huge, this will block all my other events watchers (timers, sockets, signals ...etc)