mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-13 01:33:34 +08:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user