summaryrefslogtreecommitdiff
path: root/python2/pyinotify.py
diff options
context:
space:
mode:
Diffstat (limited to 'python2/pyinotify.py')
-rwxr-xr-xpython2/pyinotify.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py
index 83f7766..13af04e 100755
--- a/python2/pyinotify.py
+++ b/python2/pyinotify.py
@@ -1447,6 +1447,7 @@ class Notifier:
"""
self._pollobj.unregister(self._fd)
os.close(self._fd)
+ self._sys_proc_fun = None
class ThreadedNotifier(threading.Thread, Notifier):
@@ -1593,6 +1594,10 @@ class TornadoAsyncNotifier(Notifier):
threshold, timeout)
ioloop.add_handler(self._fd, self.handle_read, ioloop.READ)
+ def stop(self):
+ self.io_loop.remove_handler(self._fd)
+ Notifier.stop(self)
+
def handle_read(self, *args, **kwargs):
"""
See comment in AsyncNotifier.