diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-18 15:04:04 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-18 15:04:27 -0400 |
commit | b9870f2e9293491a2f17b1c3bbd4e1bc2d505704 (patch) | |
tree | b5d383d89e9be71c5a8925973b2cb45897b437a9 /src/lib/Bcfg2/Server/FileMonitor/Inotify.py | |
parent | b3dde5da6971834bcacba66fa6ece5c7879c4dd9 (diff) | |
download | bcfg2-b9870f2e9293491a2f17b1c3bbd4e1bc2d505704.tar.gz bcfg2-b9870f2e9293491a2f17b1c3bbd4e1bc2d505704.tar.bz2 bcfg2-b9870f2e9293491a2f17b1c3bbd4e1bc2d505704.zip |
fixed gamin issues with late daemonization
Diffstat (limited to 'src/lib/Bcfg2/Server/FileMonitor/Inotify.py')
-rw-r--r-- | src/lib/Bcfg2/Server/FileMonitor/Inotify.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py index 60e26587e..6a8fd0201 100644 --- a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py +++ b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py @@ -3,7 +3,6 @@ import os import sys import logging -import operator import pyinotify from Bcfg2.Compat import reduce from Bcfg2.Server.FileMonitor import Event @@ -11,6 +10,7 @@ from Bcfg2.Server.FileMonitor.Pseudo import Pseudo logger = logging.getLogger(__name__) + class Inotify(Pseudo, pyinotify.ProcessEvent): __priority__ = 1 action_map = {pyinotify.IN_CREATE: 'created', @@ -22,6 +22,7 @@ class Inotify(Pseudo, pyinotify.ProcessEvent): def __init__(self, ignore=None, debug=False): Pseudo.__init__(self, ignore=ignore, debug=debug) + pyinotify.ProcessEvent(self) self.event_filter = dict() self.watches_by_path = dict() # these are created in start() after the server is done forking @@ -53,7 +54,6 @@ class Inotify(Pseudo, pyinotify.ProcessEvent): try: watch = self.wm.watches[ievent.wd] except KeyError: - err = sys.exc_info()[1] logger.error("Error handling event for %s: Watch %s not found" % (ievent.pathname, ievent.wd)) return |