signal_caught = 0;
signal_process(void){	struct event *ev;	short ncalls;	TAILQ_FOREACH(ev, &signalqueue, ev_signal_next) {		ncalls = evsigcaught[EVENT_SIGNAL(ev)];		if (ncalls) {			if (!(ev->ev_events & EV_PERSIST))				event_del(ev);			event_active(ev, EV_SIGNAL, ncalls);		}	}	memset(evsigcaught, 0, sizeof(evsigcaught));}