]> git.llucax.com Git - software/libev.git/blobdiff - ev_select.c
implement poll method, handle enomem by closing a 'random' fd
[software/libev.git] / ev_select.c
index 7bbf6222fd8c635a6c1c124377c27a8d5134f0a6..0333d63949bbce3feb301d98048bfbd674460138 100644 (file)
@@ -116,7 +116,9 @@ select_poll (ev_tstamp timeout)
   else if (res < 0)
     {
       if (errno == EBADF)
   else if (res < 0)
     {
       if (errno == EBADF)
-        fd_recheck ();
+        fd_ebadf ();
+      else if (errno == ENOMEM)
+        fd_enomem ();
     }
 }
 
     }
 }