From c85b0f045fdce75e087cf56f9ab96fc2ada0d976 Mon Sep 17 00:00:00 2001 From: Lei Xue Date: Sun, 11 Dec 2016 20:56:12 +0800 Subject: [PATCH] comment runtime.GOMAXPROCS to avoid concurrent issue --- cmd/daemon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/daemon.go b/cmd/daemon.go index 1ea9a2a..e5f0c5d 100644 --- a/cmd/daemon.go +++ b/cmd/daemon.go @@ -20,7 +20,6 @@ import ( "fmt" "os" "os/signal" - "runtime" "strings" "syscall" @@ -89,7 +88,8 @@ func createDaemon(host, driver, level string) error { targetDriver.NewTarget(tgtname, config) } - runtime.GOMAXPROCS(runtime.NumCPU()) + // comment this to avoid concurrent issue + // runtime.GOMAXPROCS(runtime.NumCPU()) // run a service go targetDriver.Run()