diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-07 04:42:35 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-07 04:42:35 +0100 |
commit | 52aa00f3ba08371e3a683fa995f66ccf1c0024cd (patch) | |
tree | 6c3f1fbc4e64c603869a92c5c1d759231c322dee /main_windows.go | |
parent | ea59177f1c6ab9031d5d30771410c9514fa551d9 (diff) |
main_windows: Catch more exit events
Diffstat (limited to 'main_windows.go')
-rw-r--r-- | main_windows.go | 3 |
1 files changed, 3 insertions, 0 deletions
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: |