Browse Source

Minor cosmetic fixes

Carl Jackson 12 years ago
parent
commit
53f6b7b4a8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      graceful/signal.go

+ 2
- 2
graceful/signal.go View File

@ -39,7 +39,7 @@ func AddSignal(sig ...os.Signal) {
signal.Notify(sigchan, sig...)
}
// ResetSignals resets the list of signals that trigger a graceful shutdown.
// ResetSignals resets the list of signals that trigger a graceful shutdown.
// Useful if, for instance, you don't want to use the default interrupt (SIGINT)
// handler. Since we necessarily install the SIGINT handler before you have a
// chance to call ResetSignals(), there will be a brief window during which the
@ -57,7 +57,7 @@ func (u userShutdown) String() string {
}
func (u userShutdown) Signal() {}
// Shutdown manually trigger a shutdown from your application. Like Wait(),
// Shutdown manually triggers a shutdown from your application. Like Wait(),
// blocks until all connections have gracefully shut down.
func Shutdown() {
sigchan <- userShutdown{}


Loading…
Cancel
Save