rem: has_signals_pending(void *thr)
add: has_signals_pending(void *_thread)
context: has_signals_pending(void *thr){	struct thread *t = (struct thread *)thr;	if (!t)		t = thread_get_current_thread();	return (t->sig_pending & ~t->sig_block_mask);}