|
|
@ -49,11 +49,15 @@ func main() {
|
|
|
|
|
|
|
|
|
|
|
|
quit := rfm.Loop()
|
|
|
|
quit := rfm.Loop()
|
|
|
|
|
|
|
|
|
|
|
|
sigint := make(chan os.Signal)
|
|
|
|
sigint := make(chan os.Signal, 1)
|
|
|
|
signal.Notify(sigint, os.Interrupt)
|
|
|
|
signal.Notify(sigint, os.Interrupt)
|
|
|
|
|
|
|
|
|
|
|
|
<-sigint
|
|
|
|
for {
|
|
|
|
|
|
|
|
select {
|
|
|
|
quit <- 1
|
|
|
|
case <-sigint:
|
|
|
|
<-quit
|
|
|
|
quit <- 1
|
|
|
|
|
|
|
|
<-quit
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|