func CheckDaemonsRestart(chBreaker chan bool, chAnswer chan string, goRoutineName string) bool { log.Debug("CheckDaemonsRestart %v %v", goRoutineName, utils.Caller(2)) select { case <-chBreaker: log.Debug("DaemonCh true %v", goRoutineName) chAnswer <- goRoutineName return true default: } return false }
func (d *daemon) dbUnlock() error { log.Debug("dbUnlock %v", utils.Caller(1)) return d.DbUnlock(d.goRoutineName) }