summaryrefslogtreecommitdiffstats
path: root/wallace
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-13 11:40:03 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-13 11:40:24 +0200
commit838a608d8225b30014b4f38e26091236e2d77564 (patch)
tree6d5fcdaeb7b10b202bfe65b09de16bd858860978 /wallace
parentdac257cc209e0997dca975e0b8f69ac496f393c5 (diff)
downloadpykolab-838a608d8225b30014b4f38e26091236e2d77564.tar.gz
Close the pool and join the workers before terminating oneself (#5040)
Diffstat (limited to 'wallace')
-rw-r--r--wallace/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wallace/__init__.py b/wallace/__init__.py
index f82015d..7350f64 100644
--- a/wallace/__init__.py
+++ b/wallace/__init__.py
@@ -333,6 +333,10 @@ class WallaceDaemon(object):
def remove_pid(self, *args, **kw):
if os.access(conf.pidfile, os.R_OK):
os.remove(conf.pidfile)
+
+ self.pool.close()
+ self.pool.join()
+
raise SystemExit
def run(self):