]> git.llucax.com Git - software/libev.git/blobdiff - ev_select.c
added kqeueue backend, completely untested
[software/libev.git] / ev_select.c
index 0dfa3128acff8577266448e5ee2cf4ba9b46cbb7..0333d63949bbce3feb301d98048bfbd674460138 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * libev select fd activity backend
+ *
  * Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de>
  * All rights reserved.
  *
@@ -114,7 +116,9 @@ select_poll (ev_tstamp timeout)
   else if (res < 0)
     {
       if (errno == EBADF)
-        fd_recheck ();
+        fd_ebadf ();
+      else if (errno == ENOMEM)
+        fd_enomem ();
     }
 }