From af962ce3f6f1a048642d5c70f97aa525792b6489 Mon Sep 17 00:00:00 2001 From: xiantang Date: Mon, 28 Aug 2023 10:46:26 +0800 Subject: [PATCH] Deal with sighup (#460) * Modified engine_test.go file * deal with SIGHUP signal in main.go file --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 0b785ea9..4635ae32 100644 --- a/main.go +++ b/main.go @@ -59,7 +59,7 @@ func main() { fmt.Println("[debug] mode") } sigs := make(chan os.Signal, 1) - signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM) + signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP) var err error cfg, err := runner.InitConfig(cfgPath)