Merge branch 'patch-1' of github.com:ryo-utsunomiya/gin into patch-1

This commit is contained in:
Ryo Utsunomiya 2019-09-24 16:36:19 +09:00
commit 683e8cc4e3

View File

@ -1762,7 +1762,7 @@ func main() {
quit := make(chan os.Signal, 1)
// kill (no param) default send syscall.SIGTERM
// kill -2 is syscall.SIGINT
// kill -9 is syscall.SIGKILL but can't be catch, so don't need add it
// kill -9 is syscall. SIGKILL but can't be catch, so don't need add it
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
<-quit
log.Println("Shutdown Server ...")