Only inspect for proper FD
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 13 Aug 2014 13:05:15 +0000 (15:05 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 13 Aug 2014 13:05:15 +0000 (15:05 +0200)
src/eventl.c

index b914bf3..39c243a 100644 (file)
@@ -334,7 +334,7 @@ static int event_loop(iochan_man_t man, IOCHAN *iochans)
                 p->last_event = now;
                 p->this_event |= EVENT_TIMEOUT;
             }
-            if (fds[i].fd >= 0)
+            if (fds[i].fd >= 0 && p->fd == fds[i].fd)
             {
                 if (fds[i].output_mask & yaz_poll_read)
                 {