summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/backend/leapbackend.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-07-22 11:33:09 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-07-24 15:23:20 -0300
commitce88b52295881a3dd1bc0efec8e72b1d3a235e87 (patch)
tree38e48db1889e1af3b7b60cdb43ab7786798d557a /src/leap/bitmask/backend/leapbackend.py
parentfaadf8dc3bb1e49adc23c64d5a851b7eea0ce2ee (diff)
Add frontend alive check to the backend.
Stop the backend if the frontend process does not exist any more and backend is not a daemon.
Diffstat (limited to 'src/leap/bitmask/backend/leapbackend.py')
-rw-r--r--src/leap/bitmask/backend/leapbackend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/backend/leapbackend.py b/src/leap/bitmask/backend/leapbackend.py
index d3c4fcda..6b0328ca 100644
--- a/src/leap/bitmask/backend/leapbackend.py
+++ b/src/leap/bitmask/backend/leapbackend.py
@@ -36,11 +36,11 @@ class LeapBackend(Backend):
"""
Backend server subclass, used to implement the API methods.
"""
- def __init__(self, bypass_checks=False):
+ def __init__(self, bypass_checks=False, frontend_pid=None):
"""
Constructor for the backend.
"""
- Backend.__init__(self)
+ Backend.__init__(self, frontend_pid)
self._settings = Settings()