mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Protect shutdown callbacks lists with a mutex (#2432)
This commit is contained in:
committed by
Harshavardhana
parent
9606cb9bcd
commit
5526ac13d2
7
main.go
7
main.go
@@ -158,9 +158,6 @@ func main() {
|
||||
// Enable all loggers by now.
|
||||
enableLoggers()
|
||||
|
||||
// Initialize name space lock.
|
||||
initNSLock()
|
||||
|
||||
// Set global quiet flag.
|
||||
globalQuiet = c.Bool("quiet") || c.GlobalBool("quiet")
|
||||
|
||||
@@ -189,10 +186,6 @@ func main() {
|
||||
defer profile.Start(profile.BlockProfile, profile.ProfilePath(profileDir)).Stop()
|
||||
}
|
||||
|
||||
// Initialize and monitor shutdown signal
|
||||
shutdownSignal = make(chan bool, 1)
|
||||
monitorShutdownSignal(os.Exit)
|
||||
|
||||
// Run the app - exit on error.
|
||||
app.RunAndExitOnError()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user