send sigint instead of sigkill; we can at least ask the tunnel nicely to shut down.

This commit is contained in:
Megan Marsh 2020-04-23 14:30:38 -07:00
parent f67a8ab431
commit 9353635b43
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ func (t *TunnelDriverLinux) StopTunnel() {
// daemon child. We create the group ID with the syscall.SysProcAttr
// call inside the retry loop above, and then store that ID on the
// command so we can destroy it here.
err := syscall.Kill(-t.cmd.Process.Pid, syscall.SIGKILL)
err := syscall.Kill(-t.cmd.Process.Pid, syscall.SIGINT)
if err != nil {
log.Printf("Issue stopping IAP tunnel: %s", err)
}