summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2/Server/FileMonitor/Inotify.py')
-rw-r--r--src/lib/Bcfg2/Server/FileMonitor/Inotify.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
index e4948ea8d..097fc0b42 100644
--- a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
+++ b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
@@ -40,7 +40,10 @@ class Inotify(Pseudo, pyinotify.ProcessEvent):
self.add_q = []
def fileno(self):
- return self.wm.get_fd()
+ if self.started:
+ return self.wm.get_fd()
+ else:
+ return None
def process_default(self, ievent):
action = ievent.maskname