Esempio n. 1
1
func init() {
	intrlk.Lock()
	intrc = make(chan bool)
	intrlk.Unlock()
	dbg.AtIntr(func() bool {
		dprintf("*** SIGINT\n")
		intrlk.Lock()
		close(intrc)
		intrc = make(chan bool)
		Interrupted = true
		intrlk.Unlock()
		return !IntrExits
	})
}
Esempio n. 2
1
func init() {
	dbg.AtExit(appExit)
	dbg.AtIntr(appIntr)
}