diff options
author | kali <kali@leap.se> | 2012-11-28 02:43:25 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-11-28 03:00:27 +0900 |
commit | a3ce61ea54b0b0f5c1ecd5904379e27cfec885b5 (patch) | |
tree | 27e594233eff749f928cb503e3d4a9920aa08062 /src/leap/eip | |
parent | c7dec38062e433cd1f098b6f1457acc87b4e6aaf (diff) |
call shutdown signal from sigint_handler
Diffstat (limited to 'src/leap/eip')
-rw-r--r-- | src/leap/eip/openvpnconnection.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/eip/openvpnconnection.py b/src/leap/eip/openvpnconnection.py index 85874cfd..859378c0 100644 --- a/src/leap/eip/openvpnconnection.py +++ b/src/leap/eip/openvpnconnection.py @@ -390,9 +390,14 @@ to be triggered for each one of them. """ logger.debug("disconnecting...") if self.connected(): - self._send_command("signal SIGTERM\n") + try: + self._send_command("signal SIGTERM\n") + except socket.error: + logger.warning('management socket died') + return if self.subp: + # ??? return True #shutting openvpn failured |