mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
+1
-1
@@ -82,7 +82,7 @@ func (m *ServerMux) handleServiceSignals() error {
|
||||
|
||||
// Wait for SIGTERM in a go-routine.
|
||||
trapCh := signalTrap(os.Interrupt, syscall.SIGTERM)
|
||||
go func(<-chan bool) {
|
||||
go func(trapCh <-chan bool) {
|
||||
<-trapCh
|
||||
globalServiceSignalCh <- serviceStop
|
||||
}(trapCh)
|
||||
|
||||
Reference in New Issue
Block a user