gorakhargosh/watchdog — pull request #251 by adiroiban (2014-07-16 11:39:26+00:00)
Title: 250 - Fix inotify stop dead lock.

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