fix: remove sigkill
This commit is contained in:
parent
54fe38821c
commit
0afc7a5bed
2
main.go
2
main.go
|
@ -18,7 +18,7 @@ var apps service.Apps
|
|||
var appName, version = service.AppName()
|
||||
|
||||
func main() {
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
|
||||
go func() {
|
||||
<-ctx.Done()
|
||||
defer cancel() // restore interrupt function
|
||||
|
|
Loading…
Reference in New Issue
Block a user