diff options
author | root <root> | 2007-11-02 16:54:34 +0000 |
---|---|---|
committer | root <root> | 2007-11-02 16:54:34 +0000 |
commit | 0c513fd963e79da73c7d77018523ac956a5066bd (patch) | |
tree | 811c9fc8f69f24915a0aeee5200544a0c9be5bb2 /ev_select.c | |
parent | 6879205607d844eab17dd6c735f8e80bf1490baf (diff) |
implement poll method, handle enomem by closing a 'random' fd
Diffstat (limited to 'ev_select.c')
-rw-r--r-- | ev_select.c | 4 |
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 (); } } |