From: Jason A. Donenfeld Date: Thu, 7 Feb 2019 03:42:35 +0000 (+0100) Subject: main_windows: Catch more exit events X-Git-Tag: 0.0.20190409~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52aa00f3ba08371e3a683fa995f66ccf1c0024cd;p=thirdparty%2Fwireguard-go.git main_windows: Catch more exit events --- diff --git a/main_windows.go b/main_windows.go index d3cd82b..88e6264 100644 --- a/main_windows.go +++ b/main_windows.go @@ -9,6 +9,7 @@ import ( "fmt" "os" "os/signal" + "syscall" "git.zx2c4.com/wireguard-go/tun" ) @@ -71,6 +72,8 @@ func main() { // wait for program to terminate signal.Notify(term, os.Interrupt) + signal.Notify(term, os.Kill) + signal.Notify(term, syscall.SIGTERM) select { case <-term: