Other: Don't forward stdin/stdout/stderr

This commit is contained in:
James Houlahan
2022-11-22 14:04:13 +01:00
committed by Leander Beernaert
parent 6bd8c6ceb6
commit 7cb9d62f0c
3 changed files with 8 additions and 5 deletions

View File

@ -92,13 +92,8 @@ func (restarter *Restarter) Restart() {
return
}
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Env = getEnvList(env)
l.Warn("Restarting")
if err := run(cmd); err != nil {
l.WithError(err).Error("Failed to restart")
}