MCPcopy
hub / github.com/gofiber/fiber / executeOnForkHooks

Method executeOnForkHooks

hooks.go:446–452  ·  view source on GitHub ↗
(pid int)

Source from the content-addressed store, hash-verified

444}
445
446func (h *Hooks) executeOnForkHooks(pid int) {
447 for _, v := range h.onFork {
448 if err := v(pid); err != nil {
449 log.Errorf("failed to call fork hook: %v", err)
450 }
451 }
452}
453
454func (h *Hooks) executeOnMountHooks(app *App) error {
455 for _, v := range h.onMount {

Callers 2

preforkMethod · 0.80

Calls 1

ErrorfFunction · 0.92

Tested by 1