russdill / juniper-vpn-py

Python Juniper VPN Authenticator
GNU Lesser General Public License v2.1
103 stars 80 forks source link

Improve exit behavior with openconnect #6

Open seanmil opened 9 years ago

seanmil commented 9 years ago

Openconnect does not call the vpnc-script for cleanup unless it is terminated with SIGINT. This patch adjusts the exit behavior to capture SIGINT, send it along to the child process (if running), and then cleanly exit.

crabel commented 8 years ago

Thanks alot! I can confirm that this is a nice improvement. I have manually applied your changes to the current master and cleanup works now.