SIGTERM in openconnect does not cleanup
Copied from https://bugzilla.redhat.com/show_bug.cgi?id=1200623
/etc/resolv.conf
file after starting an openconnect VPN connection. It's not restored after the openconnect process receives a SIGTERM.
Steps to Reproduce:
- Start an openconnect VPN connection at the commandline using /usr/sbin/openconnect
- Send a SIGTERM to the openconnect process using: kill
Actual results:
/etc/resolv.conf remains modified even after the openconnect process terminates.
Expected results:
The original /etc/resolv.conf is restored.
Additional info:
Reproducing this may depend on whether the VPN gateway provides nameservers.