start should after beging listen signal (#289)

This commit is contained in:
zweite
2016-06-01 11:11:43 +06:00
committed by Leonid Bugaev
parent b01748bbdf
commit a4e5918534
+2 -2
View File
@@ -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) {