only use forking on posix

This commit is contained in:
Unrud 2018-09-05 11:30:25 +02:00 committed by Unrud
parent bfa711b939
commit 901c5d059f

View File

@ -37,7 +37,7 @@ from urllib.parse import unquote
from radicale import Application
from radicale.log import logger
if hasattr(socketserver, "ForkingMixIn"):
if os.name == "posix":
ParallelizationMixIn = socketserver.ForkingMixIn
else:
ParallelizationMixIn = socketserver.ThreadingMixIn