fix(agent): Allow gracefull shutdown on interrupt (e.g. Ctrl-C) (#12781)

This commit is contained in:
Sven Rebhan 2023-03-02 18:46:41 +01:00 committed by GitHub
parent f87916aaa9
commit ed91ca2bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -362,7 +362,6 @@ func runApp(args []string, outputBuffer io.Writer, pprof Server, c TelegrafConfi
}
// Make sure we safely erase secrets
memguard.CatchInterrupt()
defer memguard.Purge()
return app.Run(args)