Skip to content

Commit

Permalink
Deal with sighup (#460)
Browse files Browse the repository at this point in the history
* Modified engine_test.go file

* deal with SIGHUP signal in main.go file
  • Loading branch information
xiantang authored Aug 28, 2023
1 parent 45cb622 commit af962ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit af962ce

Please sign in to comment.