mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Add a generic registerShutdown function for graceful exit (#2344)
* Add a generic registerShutdown function for graceful exit * Add shutdown callback test case
This commit is contained in:
committed by
Harshavardhana
parent
62c0612eac
commit
d28fb5fe23
@@ -18,6 +18,14 @@ package main
|
||||
|
||||
import "errors"
|
||||
|
||||
// errCode represents the return status of shutdown functions
|
||||
type errCode int
|
||||
|
||||
const (
|
||||
exitFailure errCode = -1
|
||||
exitSuccess errCode = 0
|
||||
)
|
||||
|
||||
// errSyslogNotSupported - this message is only meaningful on windows
|
||||
var errSyslogNotSupported = errors.New("Syslog logger not supported on windows")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user