dbg("event_thread finish command given\n");
void shpchp_event_stop_thread (void){	event_finished = 1;	dbg("event_thread finish command given\n");	up(&event_semaphore);	dbg("wait for event_thread to exit\n");	down(&event_exit);}