libev icon indicating copy to clipboard operation
libev copied to clipboard

ev_io_start run only the first time

Open defeden opened this issue 7 years ago • 0 comments

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)

defeden avatar Dec 19 '17 13:12 defeden