event_queue_remove(ev, EVLIST_SIGNAL);
event_queue_remove(base, ev, EVLIST_SIGNAL);
event_del(struct event *ev){	LOG_DBG((LOG_MISC, 80, "event_del: %p, callback %p",		 ev, ev->ev_callback));	assert(!(ev->ev_flags & ~EVLIST_ALL));	/* See if we are just active executing this event in a loop */	if (ev->ev_ncalls && ev->ev_pncalls) {		/* Abort loop */		*ev->ev_pncalls = 0;	}	if (ev->ev_flags & EVLIST_TIMEOUT)		event_queue_remove(ev, EVLIST_TIMEOUT);	if (ev->ev_flags & EVLIST_ACTIVE)		event_queue_remove(ev, EVLIST_ACTIVE);	if (ev->ev_flags & EVLIST_INSERTED) {		event_queue_remove(ev, EVLIST_INSERTED);		return (evsel->del(evbase, ev));	} else if (ev->ev_flags & EVLIST_SIGNAL) {		event_queue_remove(ev, EVLIST_SIGNAL);		return (evsel->del(evbase, ev));	}	return (0);}