projects/aports·blob master · refs

16 lines · 600 B

1diff --git a/otpush/push.py b/otpush/push.py
2index cd660fd..8622e05 100755
3--- a/otpush/push.py
4+++ b/otpush/push.py
5@@ -133,8 +133,9 @@ class RepoServer:
6 address it is bound to. If the address is not received by the
7 instance's timeout value, an exception is raised.
8 """
9- addr_queue = multiprocessing.Queue()
10- self.proc = multiprocessing.Process(
11+ ctx = multiprocessing.get_context('fork')
12+ addr_queue = ctx.Queue()
13+ self.proc = ctx.Process(
14 target=self._run_server,
15 args=(self.path, addr_queue)
16 )