Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ev_io_start run only the first time #1

Open
defeden opened this issue Dec 19, 2017 · 0 comments
Open

ev_io_start run only the first time #1

defeden opened this issue Dec 19, 2017 · 0 comments

Comments

@defeden
Copy link

defeden commented Dec 19, 2017

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)

msaf1980 added a commit to msaf1980/libev that referenced this issue Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant