summaryrefslogtreecommitdiff
path: root/src/leap/eip/openvpnconnection.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-20 04:39:50 +0900
committerkali <kali@leap.se>2012-09-20 04:39:50 +0900
commitf2749fa3ff1df5875d3bc0b932a408031fee9874 (patch)
treeda78596104a8cfe906f3a6f469d23157ac4803d7 /src/leap/eip/openvpnconnection.py
parentcbd474e49e12e5fc0677dafe331b9c5ab3a2539a (diff)
toggle connection on/off
Diffstat (limited to 'src/leap/eip/openvpnconnection.py')
-rw-r--r--src/leap/eip/openvpnconnection.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/eip/openvpnconnection.py b/src/leap/eip/openvpnconnection.py
index 92ae9de9..e32d584c 100644
--- a/src/leap/eip/openvpnconnection.py
+++ b/src/leap/eip/openvpnconnection.py
@@ -163,8 +163,13 @@ to be triggered for each one of them.
"""
terminates child subprocess
"""
+ # XXX we should send a quit process using management
+ # interface.
if self.subp:
- self.subp.terminate()
+ try:
+ self.subp.terminate()
+ except OSError:
+ logger.error('cannot terminate subprocess!')
#
# management methods