utils: Shutdown channel should be bufferred.

This commit is contained in:
Harshavardhana 2016-08-15 21:01:24 -07:00
parent e86dfcf41e
commit c054e633fd

View file

@ -146,7 +146,7 @@ func initGracefulShutdown(onExitFn onExitFunc) error {
}
// Global shutdown signal channel.
var globalShutdownSignalCh = make(chan struct{})
var globalShutdownSignalCh = make(chan struct{}, 1)
// Start to monitor shutdownSignal to execute shutdown callbacks
func startMonitorShutdownSignal(onExitFn onExitFunc) error {