From ed91ca2bfd1ae41aaa3860a6d1151f84bff4e575 Mon Sep 17 00:00:00 2001 From: Sven Rebhan <36194019+srebhan@users.noreply.github.com> Date: Thu, 2 Mar 2023 18:46:41 +0100 Subject: [PATCH] fix(agent): Allow gracefull shutdown on interrupt (e.g. Ctrl-C) (#12781) --- cmd/telegraf/main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/telegraf/main.go b/cmd/telegraf/main.go index 7036fcccf..a8a78775d 100644 --- a/cmd/telegraf/main.go +++ b/cmd/telegraf/main.go @@ -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)