diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-07-22 11:33:09 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-07-24 15:23:20 -0300 |
commit | ce88b52295881a3dd1bc0efec8e72b1d3a235e87 (patch) | |
tree | 38e48db1889e1af3b7b60cdb43ab7786798d557a /src/leap/bitmask/backend/leapbackend.py | |
parent | faadf8dc3bb1e49adc23c64d5a851b7eea0ce2ee (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.py | 4 |
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() |