From ee62668d68771888fbfc139ab21cc2f7963f7b0d Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Mon, 18 Jul 2011 19:26:58 +0100
Subject: [PATCH] use pyinotify.IN_CLOSE_WRITE

---
 client/djrandom_client/linux_watcher.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/djrandom_client/linux_watcher.py b/client/djrandom_client/linux_watcher.py
index 4988bbc..83c7603 100644
--- a/client/djrandom_client/linux_watcher.py
+++ b/client/djrandom_client/linux_watcher.py
@@ -5,7 +5,7 @@ class Watcher(object):
 
     def __init__(self, base, queue):
         self.wm = pyinotify.WatchManager()
-        self.wm.add_watch('/tmp', pyinotify.IN_CLOSE, rec=True)
+        self.wm.add_watch('/tmp', pyinotify.IN_CLOSE_WRITE, rec=True)
         self.notifier = pyinotify.ThreadedNotifier(self.wm, self)
         self.notifier.start()
 
-- 
GitLab