-
-
Notifications
You must be signed in to change notification settings - Fork 690
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
on_modify called every couple of milliseconds on ubuntu #280
Comments
on_modified is triggered on write. On osx the modified events are generated by comparing mtime (which only have 1 second resolution on osx if I recall correctly) so this is normal. |
@tamland well, that's strange as on_modified is triggered on OS X only when the file is closed, not when it's being written. If this is all is true, what event tells me that the file was just closed by all processes and can be accessed? In inotify it's |
Hm, if there is no IN_CLOSE event implemented, it's probably not possible for me to use watchdog. If I have to monitor watchdog itself, then it just ads extra work and then it's easier to use Launchctl on Mac and Inotify on Linux. Thanks anyway |
Finally implemented the inotify event with 2fab7c2 (will be part of the 1.0.3 version). |
I have absolutely different behavior for the same code on Mac vs Ubuntu.
I am using the example code
On Mac, the result is what I was expecting
But the same code on ubuntu is triggered every couple of milliseconds even I didn't change anything in the code.
I was looking for some on_close statement, but nothing is there thus I thought that on_modified is triggered when the file is closed. But it seems like it only works that way on Mac not on ubuntu.
Any idea what to do?
The text was updated successfully, but these errors were encountered: