summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Core.py
diff options
context:
space:
mode:
authorJason Kincl <kincljc@ornl.gov>2013-04-17 14:40:49 -0400
committerJason Kincl <kincljc@ornl.gov>2013-04-17 14:40:49 -0400
commitd7fbb6d325796954c461fad71c15873d71d79fef (patch)
tree59c976204b8605cf304af02903cad5b749b79600 /src/lib/Bcfg2/Server/Core.py
parentb950aaa6f3452b2b5a14f6f01331f94e66ee3313 (diff)
downloadbcfg2-d7fbb6d325796954c461fad71c15873d71d79fef.tar.gz
bcfg2-d7fbb6d325796954c461fad71c15873d71d79fef.tar.bz2
bcfg2-d7fbb6d325796954c461fad71c15873d71d79fef.zip
Adding option to force server to wait until all FAM events are processed
Diffstat (limited to 'src/lib/Bcfg2/Server/Core.py')
-rw-r--r--src/lib/Bcfg2/Server/Core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Core.py b/src/lib/Bcfg2/Server/Core.py
index 382f11e50..f2af2fa87 100644
--- a/src/lib/Bcfg2/Server/Core.py
+++ b/src/lib/Bcfg2/Server/Core.py
@@ -761,6 +761,11 @@ class BaseCore(object):
self.shutdown()
raise
+ if setup['fam_blocking']:
+ time.sleep(1)
+ while self.fam.pending() != 0:
+ time.sleep(1)
+
self.set_debug(None, self.debug_flag)
self._block()