Explorar o código

fix(main): add SIGHUP signal handling in context notification

Jacky hai 2 días
pai
achega
8bbb2ff559
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -103,7 +103,7 @@ func main() {
 	confPath := appCmd.String("config")
 	settings.Init(confPath)
 
-	ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
+	ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM)
 	defer cancel()
 
 	err := risefront.New(ctx, risefront.Config{