summaryrefslogtreecommitdiff
path: root/ev_select.c
diff options
context:
space:
mode:
authorroot <root>2007-11-02 16:54:34 +0000
committerroot <root>2007-11-02 16:54:34 +0000
commit0c513fd963e79da73c7d77018523ac956a5066bd (patch)
tree811c9fc8f69f24915a0aeee5200544a0c9be5bb2 /ev_select.c
parent6879205607d844eab17dd6c735f8e80bf1490baf (diff)
implement poll method, handle enomem by closing a 'random' fd
Diffstat (limited to 'ev_select.c')
-rw-r--r--ev_select.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ev_select.c b/ev_select.c
index 7bbf622..0333d63 100644
--- a/ev_select.c
+++ b/ev_select.c
@@ -116,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 ();
}
}