Fix a typo syscanll.SIGTERM -> syscall.SIGTERM

This commit is contained in:
DeathKing 2019-04-22 11:39:46 +08:00 committed by GitHub
parent f9de6049cb
commit 154e907bd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1696,7 +1696,7 @@ func main() {
// Wait for interrupt signal to gracefully shutdown the server with
// a timeout of 5 seconds.
quit := make(chan os.Signal)
// kill (no param) default send syscanll.SIGTERM
// 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
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)