fixed signal method

This commit is contained in:
Xing Xing 2015-01-16 17:41:19 +08:00
parent 939189448e
commit bc80b2f853

View File

@ -70,5 +70,5 @@ func main() {
} }
go w.Work() go w.Work()
signal.Bind(os.Interrupt, func() uint { return signal.BreakExit }) signal.Bind(os.Interrupt, func() uint { return signal.BreakExit })
signal.Loop() signal.Wait()
} }