summaryrefslogtreecommitdiffstats
path: root/kolabd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-26 16:28:42 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-26 16:28:42 +0100
commit5fe27b7621d7603cbe95baa452514da88f926d98 (patch)
tree257a0cd3020b68c0b69c7c1bf74cece896d52a05 /kolabd
parent5450ee2039d3af5bfaa2d3734dfe7800e5b1aa24 (diff)
downloadpykolab-5fe27b7621d7603cbe95baa452514da88f926d98.tar.gz
Sleep for a second or so, otherwise we loop very quickly - also accept a KeyboardInterrupt exception to bail out
Diffstat (limited to 'kolabd')
-rw-r--r--kolabd/process.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kolabd/process.py b/kolabd/process.py
index f5f5352..70b535a 100644
--- a/kolabd/process.py
+++ b/kolabd/process.py
@@ -43,7 +43,10 @@ class KolabdProcess(multiprocessing.Process):
auth = Auth(domain)
auth.connect(domain)
auth.synchronize()
+ except KeyboardInterrupt:
+ break
except Exception, errmsg:
log.error(_("Error in process %r, terminating:\n\t%r") % (self.name, errmsg))
import traceback
traceback.print_exc()
+ time.sleep(1)