diff --git a/internal/confwatcher/confwatcher.go b/internal/confwatcher/confwatcher.go index 720d5c8b..c5cf3ff5 100644 --- a/internal/confwatcher/confwatcher.go +++ b/internal/confwatcher/confwatcher.go @@ -52,6 +52,7 @@ func New(confPath string) (*ConfWatcher, error) { } go w.run() + return w, nil } diff --git a/internal/core/path.go b/internal/core/path.go index 3a196ffe..59c867a3 100644 --- a/internal/core/path.go +++ b/internal/core/path.go @@ -294,6 +294,7 @@ func newPath( pa.wg.Add(1) go pa.run() + return pa } diff --git a/internal/externalcmd/cmd.go b/internal/externalcmd/cmd.go index ccc503ff..8d64504d 100644 --- a/internal/externalcmd/cmd.go +++ b/internal/externalcmd/cmd.go @@ -38,6 +38,7 @@ func New(cmdstr string, restart bool, env Environment) *Cmd { } go e.run() + return e }