diff --git a/caddy/caddy.go b/caddy/caddy.go index 9383e386..f6976ea0 100644 --- a/caddy/caddy.go +++ b/caddy/caddy.go @@ -149,9 +149,9 @@ func Start(cdyfile Input) error { // Tell parent process that we got this if isRestart() { - file := os.NewFile(3, "") - file.Write([]byte("success")) - file.Close() + ppipe := os.NewFile(3, "") // parent is listening on pipe at index 3 + ppipe.Write([]byte("success")) + ppipe.Close() } return nil