only register signal handling once

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2024-07-29 16:28:13 +02:00
parent 7999e2969b
commit 066c4b8173
44 changed files with 50 additions and 54 deletions
+1 -1
View File
@@ -28,6 +28,6 @@ func Execute() error {
)
}
ctx, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
ctx, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT, syscall.SIGHUP)
return app.RunContext(ctx, os.Args)
}