diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-11-16 09:28:18 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-11-16 09:57:54 -0500 |
commit | c57bcc40f4edad2666dc7b5fe718b2399d0edbf8 (patch) | |
tree | 3ae7c079c4b0a88ef427048d047b0cb5b3af6e2e /src/lib/Bcfg2 | |
parent | f30b6d7ef7d3ab5da95b0b7f945b479887aba653 (diff) | |
download | bcfg2-c57bcc40f4edad2666dc7b5fe718b2399d0edbf8.tar.gz bcfg2-c57bcc40f4edad2666dc7b5fe718b2399d0edbf8.tar.bz2 bcfg2-c57bcc40f4edad2666dc7b5fe718b2399d0edbf8.zip |
Inotify: explicitly ignore events not in event mask
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r-- | src/lib/Bcfg2/Server/FileMonitor/Inotify.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py index 8a311c8c6..178a47b1a 100644 --- a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py +++ b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py @@ -110,6 +110,13 @@ class Inotify(Pseudo, pyinotify.ProcessEvent): if ievent.mask & amask: action = aname break + else: + # event action is not in the mask, and thus is not + # something we care about + self.debug_log("Ignoring event %s for %s" % (action, + ievent.pathname)) + return + try: watch = self.watchmgr.watches[ievent.wd] except KeyError: |