mirror of
https://github.com/minio/minio
synced 2024-11-05 17:34:01 +00:00
utils: Shutdown channel should be bufferred.
This commit is contained in:
parent
e86dfcf41e
commit
c054e633fd
1 changed files with 1 additions and 1 deletions
2
utils.go
2
utils.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue