From 52aa00f3ba08371e3a683fa995f66ccf1c0024cd Mon Sep 17 00:00:00 2001
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
Date: Thu, 7 Feb 2019 04:42:35 +0100
Subject: [PATCH] main_windows: Catch more exit events

---
 main_windows.go | 3 +++
 1 file changed, 3 insertions(+)

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: