Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117837319
D853.1775306805.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
764 B
Referenced Files
None
Subscribers
None
D853.1775306805.diff
View Options
diff --git a/kolabd/__init__.py b/kolabd/__init__.py
--- a/kolabd/__init__.py
+++ b/kolabd/__init__.py
@@ -29,6 +29,7 @@
import sys
import time
import traceback
+import multiprocessing
import pykolab
@@ -370,11 +371,15 @@
at the same time, and therefore we need to test if the PID file
exists, and only try/except removing it.
"""
- if os.access(conf.pidfile, os.R_OK):
- try:
+ try:
+ for p in multiprocessing.active_children():
+ p.terminate()
+
+ if os.access(conf.pidfile, os.R_OK):
os.remove(conf.pidfile)
- except Exception:
- pass
+
+ except Exception:
+ pass
raise SystemExit
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 12:46 PM (17 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18829498
Default Alt Text
D853.1775306805.diff (764 B)
Attached To
Mode
D853: Fixes T5665: kolabd should now terminate its child processes on exit
Attached
Detach File
Event Timeline