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 }) }
func init() { dbg.AtExit(appExit) dbg.AtIntr(appIntr) }