Prechádzať zdrojové kódy

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

Jacky 2 dní pred
rodič
commit
8bbb2ff559
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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{