/* Wait for something interesting to happen */
pthread_mutex_unlock(&lock);
n = poll(fds, fdno, timeout);
pthread_mutex_lock(&lock);
if(n < 0) {
if(errno == EINTR) continue;
/* Wait for something interesting to happen */
pthread_mutex_unlock(&lock);
n = poll(fds, fdno, timeout);
pthread_mutex_lock(&lock);
if(n < 0) {
if(errno == EINTR) continue;