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

250 - Fix inotify stop dead lock. #251

Merged
merged 1 commit into from
Jul 17, 2014

Conversation

adiroiban
Copy link
Contributor

Problem

See description from #250

inotify.stop() thread never ends since it continue to wait for inotify_buffer, but the buffer is closed and will never emit a new event.

Changes

I have fixed this my emitting a one last special event to signal that inotify_buffer was closed.

py.test magic with tmpdir and p is strange ... this reminds me of AngularJS ... and pyflakes is not happy with it. :(

I have updated the README as it was not obvious that py.test is used.

How to test

You can try this code https://gist.github.com/adiroiban/064b3a5e07d404ea7109

or use the provided automated test

tamland added a commit that referenced this pull request Jul 17, 2014
@tamland tamland merged commit 3bbcd5b into gorakhargosh:master Jul 17, 2014
@chevah-robot chevah-robot deleted the 250-inotify-close-block branch July 28, 2014 14:52
CCP-Aporia pushed a commit to CCP-Aporia/watchdog that referenced this pull request Aug 13, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants