SIGINT handling fix

master
Friedl Ulrich 10 years ago
parent e74117af27
commit 838b6040ae

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

Loading…
Cancel
Save