MCPcopy Index your code
hub / github.com/foxcpp/maddy / reloadConfig

Method reloadConfig

tests/reload_unix.go:28–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26)
27
28func (t *T) reloadConfig() {
29 err := t.servProc.Process.Signal(syscall.SIGUSR2)
30 if err != nil {
31 t.Fatal("Failed to send SIGUSR2:", err)
32 }
33
34 t.Log("waiting for server to reload...")
35
36 select {
37 case <-t.reloadedChan:
38 case <-time.After(5 * time.Second):
39 t.killServer()
40 t.Fatal("Server reload is taking too long, killed")
41 }
42}

Callers 1

ConfigMethod · 0.95

Calls 1

killServerMethod · 0.95

Tested by

no test coverage detected