Add ExtraInfo to EventHook (#1692)

* Update plugins.go

* Add extraInfo to eventHook

* Add extraInfo to eventHook

* Update run.go

* Update run.go

* Update run.go
This commit is contained in:
Henrique Dias
2017-06-03 14:28:16 +01:00
committed by Matt Holt
parent 6b8e40b3fb
commit cbdd3a4f8e
3 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ func trapSignalsCrossPlatform() {
func executeShutdownCallbacks(signame string) (exitCode int) {
shutdownCallbacksOnce.Do(func() {
// execute third-party shutdown hooks
EmitEvent(ShutdownEvent)
EmitEvent(ShutdownEvent, signame)
errs := allShutdownCallbacks()
if len(errs) > 0 {