mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-12-26 19:00:44 +00:00
service: signals add syscall.SIGTERM
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
3af87d65d6
commit
9baceef381
@ -390,7 +390,7 @@ func (s *service) Close() error {
|
||||
|
||||
func (s *service) notify() <-chan os.Signal {
|
||||
sigs := make(chan os.Signal, 2)
|
||||
signal.Notify(sigs, syscall.SIGINT, syscall.SIGQUIT)
|
||||
signal.Notify(sigs, os.Interrupt, syscall.SIGTERM, syscall.SIGINT, syscall.SIGQUIT)
|
||||
return sigs
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user