From e0f4ccc46c8601f322640b72e100f973a837ef02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Sun, 16 Feb 2020 18:07:36 +0000 Subject: server kills subprocesses correctly on cancel --- internal/pprof/pprof.go | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 internal/pprof/pprof.go (limited to 'internal/pprof/pprof.go') diff --git a/internal/pprof/pprof.go b/internal/pprof/pprof.go deleted file mode 100644 index c6d11ca..0000000 --- a/internal/pprof/pprof.go +++ /dev/null @@ -1,18 +0,0 @@ -package pprof - -import ( - "fmt" - "net/http" - _ "net/http" - _ "net/http/pprof" - - "github.com/mimecast/dtail/internal/config" - "github.com/mimecast/dtail/internal/io/logger" -) - -// Start the profiler HTTP server. -func Start() { - bindAddr := fmt.Sprintf("%s:%d", config.Common.PProfBindAddress, config.Common.PProfPort) - logger.Info("Starting PProf server", bindAddr) - go http.ListenAndServe(bindAddr, nil) -} -- cgit v1.2.3