diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-03-21 14:51:58 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-03-21 14:51:58 -0300 |
commit | 2b53c03c9acf42b240a57901ae1e6d4046f52fb2 (patch) | |
tree | 46d8f0e4e4665835f319103149fb7e419162fae5 /src/leap/services/eip/vpn.py | |
parent | 344abd42c6b480a783ee05b6e92532a1113a86d2 (diff) | |
parent | 9dace17a4b162c3fbef9909b6f8226903b0ad445 (diff) |
Merge remote-tracking branch 'kali/feature/osx-eip-rewrite' into develop
Diffstat (limited to 'src/leap/services/eip/vpn.py')
-rw-r--r-- | src/leap/services/eip/vpn.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/leap/services/eip/vpn.py b/src/leap/services/eip/vpn.py index 4ac7f8a2..9d838609 100644 --- a/src/leap/services/eip/vpn.py +++ b/src/leap/services/eip/vpn.py @@ -166,6 +166,7 @@ class VPN(QtCore.QThread): self._subp.setProcessEnvironment(env) self._subp.finished.connect(self.process_finished) + self._subp.finished.connect(self._dump_exitinfo) self._subp.start(command[:1][0], command[1:]) logger.debug("Waiting for started...") self._subp.waitForStarted() @@ -181,6 +182,16 @@ class VPN(QtCore.QThread): logger.warning("Something went wrong while starting OpenVPN: %r" % (e,)) + def _dump_exitinfo(self): + """ + SLOT + TRIGGER: self._subp.finished + + Prints debug info when quitting the process + """ + logger.debug("stdout: %s", self._subp.readAllStandardOutput()) + logger.debug("stderr: %s", self._subp.readAllStandardError()) + def _get_openvpn_process(self): """ Looks for openvpn instances running |