if (evbase == NULL) errx(1, "%s: no event mechanism available", __func__);
if (current_base->evbase == NULL) event_errx(1, "%s: no event mechanism available", __func__);
event_init(void){	int i;	event_sigcb = NULL;	event_gotsig = 0;	gettimeofday(&event_tv, NULL);		RB_INIT(&timetree);	TAILQ_INIT(&eventqueue);	TAILQ_INIT(&activequeue);	TAILQ_INIT(&signalqueue);		evbase = NULL;	for (i = 0; eventops[i] && !evbase; i++) {		evsel = eventops[i];		evbase = evsel->init();	}	if (evbase == NULL)		errx(1, "%s: no event mechanism available", __func__);	if (!issetugid() && getenv("EVENT_SHOW_METHOD")) 		fprintf(stderr, "libevent using: %s\n", evsel->name); #if defined(USE_LOG) && defined(USE_DEBUG)	log_to(stderr);	log_debug_cmd(LOG_MISC, 80);#endif}