From bc80b2f85383e694d7f81b166ce4975405ac39dd Mon Sep 17 00:00:00 2001 From: Xing Xing Date: Fri, 16 Jan 2015 17:41:19 +0800 Subject: [PATCH] fixed signal method --- example/worker/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/worker/worker.go b/example/worker/worker.go index 035a5f8..3b0ddad 100644 --- a/example/worker/worker.go +++ b/example/worker/worker.go @@ -70,5 +70,5 @@ func main() { } go w.Work() signal.Bind(os.Interrupt, func() uint { return signal.BreakExit }) - signal.Loop() + signal.Wait() }