summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/backend_app.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-07-02 12:52:31 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-07-14 12:14:20 -0300
commit0cab909f9518273d95e371e5fb1061fb9b0a92fd (patch)
tree62d1bd0ea280fa1889a6f84b41cc46a232d2918e /src/leap/bitmask/backend_app.py
parent13c0b7cac822a33f7395e3f099a2d37251e2c759 (diff)
Send the flag module values to the processes.
Add serialize/deserialize to dict helper.
Diffstat (limited to 'src/leap/bitmask/backend_app.py')
-rw-r--r--src/leap/bitmask/backend_app.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/leap/bitmask/backend_app.py b/src/leap/bitmask/backend_app.py
index bd3b8a1f..d4815d82 100644
--- a/src/leap/bitmask/backend_app.py
+++ b/src/leap/bitmask/backend_app.py
@@ -17,11 +17,22 @@
import signal
from leap.bitmask.backend.leapbackend import LeapBackend
+from leap.bitmask.util import dict_to_flags
-def run_backend(bypass_checks=False):
+def run_backend(bypass_checks, flags_dict):
+ """
+ Run the backend for the application.
+
+ :param bypass_checks: whether we should bypass the checks or not
+ :type bypass_checks: bool
+ :param flags_dict: a dict containing the flag values set on app start.
+ :type flags_dict: dict
+ """
# Ensure that the application quits using CTRL-C
signal.signal(signal.SIGINT, signal.SIG_DFL)
+ dict_to_flags(flags_dict)
+
backend = LeapBackend(bypass_checks=bypass_checks)
backend.run()