e489a35ce4
- Delay setting wakeup time until after poll array has been allocated. Blocking on the malloc spinlock would cause the select timeout to be lost. (uthread_select.c 1.22) - Delay unblocking signal and restoring process signal mask until the thread signal mask has been updated to avoid stack overflow during signal bursts. Don't block signal forever if no threads can currently handle signal. Check for pending signal after direct invocation of signal handler. (uthread_select.c 1.47) - Backout unblocking of signal if no threads can currently handle it. The check for pending signal after direct invocation of signal handler is sufficient. (uthread_select.c 1.48) Approved by: re (mux, bmah)