From 9353635b43833f4a99b6a666485cf60aca01ff69 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 23 Apr 2020 14:30:38 -0700 Subject: [PATCH] send sigint instead of sigkill; we can at least ask the tunnel nicely to shut down. --- builder/googlecompute/tunnel_driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/googlecompute/tunnel_driver.go b/builder/googlecompute/tunnel_driver.go index 1a6ef0bd5..2c657ffcb 100644 --- a/builder/googlecompute/tunnel_driver.go +++ b/builder/googlecompute/tunnel_driver.go @@ -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) }