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()
|
var appName, version = service.AppName()
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
|
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
|
||||||
go func() {
|
go func() {
|
||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
defer cancel() // restore interrupt function
|
defer cancel() // restore interrupt function
|
||||||
|
|
Loading…
Reference in New Issue
Block a user