1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-10-17 20:05:55 +02:00

Remove flag that cant be trapped

This commit is contained in:
Kristoffer Dalby 2021-11-02 21:49:19 +00:00
parent 9954a3c599
commit 7c774bc547
No known key found for this signature in database
GPG Key ID: 09F62DC067465735

2
app.go
View File

@ -356,7 +356,7 @@ func (h *Headscale) Serve() error {
// Handle common process-killing signals so we can gracefully shut down:
sigc := make(chan os.Signal, 1)
signal.Notify(sigc, os.Interrupt, os.Kill, syscall.SIGTERM)
signal.Notify(sigc, os.Interrupt, syscall.SIGTERM)
go func(c chan os.Signal) {
// Wait for a SIGINT or SIGKILL:
sig := <-c