maliubiao/python-inotify — pull request #1 by Viknet (2014-01-15 22:44:07+00:00)
Title: fixed errno problem

I found bad behaviour with Queue.Queue in my program. Somewhere in threading magic python interpreter set errno to EAGAIN and inotify had stopped working.
According to man 3 errno:
"successful return can be distinguished from an error return by setting errno to zero before the call, and then, if the call returns a status that indicates that an error may have occurred, checking to see if errno has a nonzero value."