From a4e5918534da632cd31832c32beb5aa71598ce26 Mon Sep 17 00:00:00 2001 From: zweite Date: Wed, 1 Jun 2016 13:11:43 +0800 Subject: [PATCH] start should after beging listen signal (#289) --- gor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gor.go b/gor.go index bcec572..278b4ce 100644 --- a/gor.go +++ b/gor.go @@ -52,8 +52,6 @@ func main() { profileCPU(*cpuprofile) } - Start(nil) - c := make(chan os.Signal, 1) signal.Notify(c, os.Interrupt, syscall.SIGTERM) go func() { @@ -67,6 +65,8 @@ func main() { os.Exit(1) }() + + Start(nil) } func profileCPU(cpuprofile string) {