summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaixuAabuizia <PaixuAabuizia@users.noreply.github.com>2016-01-24 14:48:48 +0100
committerPaixuAabuizia <PaixuAabuizia@users.noreply.github.com>2016-01-24 14:48:48 +0100
commitfa05e417d58f1cec68a78e235989f01181f9632f (patch)
tree13eb869b53f9b16c2badb5ddaaf54edd8962c8c6 /src
parente847bf6a59783611bf14fa7f480fabe58e0b13dd (diff)
[bug] change backend process spawn method
the original implementation causes problems in win32 (see #7240) possibly because pyinstaller cannot resolve the lambda correctly. using the documented multiprocessing.Process approach to pass parameters works here
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/app.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py
index a1b7481a..982d8a13 100644
--- a/src/leap/bitmask/app.py
+++ b/src/leap/bitmask/app.py
@@ -223,9 +223,9 @@ def start_app():
backend_pid = None
if not backend_running:
frontend_pid = os.getpid()
- backend = lambda: run_backend(opts.danger, flags_dict, frontend_pid)
- backend_process = multiprocessing.Process(target=backend,
- name='Backend')
+ backend_process = multiprocessing.Process(target=run_backend,
+ name='Backend',
+ args=(opts.danger, flags_dict, frontend_pid))
# we don't set the 'daemon mode' since we need to start child processes
# in the backend
# backend_process.daemon = True