From 5ece9dc514b1fbba21e36a34f7fae42812e1d33a 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 --- cmd/dmap/main.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'cmd/dmap') diff --git a/cmd/dmap/main.go b/cmd/dmap/main.go index f3f706a..07b7f2f 100644 --- a/cmd/dmap/main.go +++ b/cmd/dmap/main.go @@ -10,7 +10,6 @@ import ( "github.com/mimecast/dtail/internal/config" "github.com/mimecast/dtail/internal/io/logger" "github.com/mimecast/dtail/internal/omode" - "github.com/mimecast/dtail/internal/pprof" "github.com/mimecast/dtail/internal/user" "github.com/mimecast/dtail/internal/version" ) @@ -24,7 +23,6 @@ func main() { var displayVersion bool var files string var noColor bool - var pprofEnable bool var queryStr string var serversStr string var silentEnable bool @@ -36,7 +34,6 @@ func main() { flag.BoolVar(&debugEnable, "debug", false, "Activate debug messages") flag.BoolVar(&displayVersion, "version", false, "Display version") flag.BoolVar(&noColor, "noColor", false, "Disable ANSII terminal colors") - flag.BoolVar(&pprofEnable, "pprofEnable", false, "Enable pprof server") flag.BoolVar(&silentEnable, "silent", false, "Reduce output") flag.BoolVar(&trustAllHosts, "trustAllHosts", false, "Auto trust all unknown host keys") flag.IntVar(&connectionsPerCPU, "cpc", 10, "How many connections established per CPU core concurrently") @@ -61,9 +58,6 @@ func main() { serverEnable := false logger.Start(ctx, serverEnable, debugEnable, silentEnable, silentEnable) - if pprofEnable || config.Common.PProfEnable { - pprof.Start() - } args := clients.Args{ ConnectionsPerCPU: connectionsPerCPU, -- cgit v1.2.3