diff options
author | root <root> | 2008-11-21 02:10:34 +0000 |
---|---|---|
committer | root <root> | 2008-11-21 02:10:34 +0000 |
commit | 0b28ac4571929a861fbacc5ce9c61de21395debd (patch) | |
tree | d8317f0cacaaf0452a82a9787317d00c83c845c6 | |
parent | 9e5319be42a6a99f784ce5ab421b0393adadc2ea (diff) |
*** empty log message ***
-rw-r--r-- | Changes | 3 | ||||
-rw-r--r-- | ev_port.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -2,6 +2,9 @@ Revision history for libev, a high-performance and full-featured event loop. - new config symbol, EV_USE_CLOCK_SYSCALL, to make libev use a direct syscall - slower, but no dependency on librt et al. + - assume negative return values != -1 signals success of port_getn + (http://cvs.epicsol.org/cgi/viewcvs.cgi/epic5/source/newio.c?rev=1.52) + (no known failure reports, but it doesn't hurt). 3.49 Wed Nov 19 11:26:53 CET 2008 - ev_stat watchers will now use inotify as a mere hint on @@ -89,7 +89,7 @@ port_poll (EV_P_ ev_tstamp timeout) ts.tv_nsec = (long)(timeout - (ev_tstamp)ts.tv_sec) * 1e9; res = port_getn (backend_fd, port_events, port_eventmax, &nget, &ts); - if (res < 0) + if (res == -1) { if (errno != EINTR && errno != ETIME) ev_syserr ("(libev) port_getn"); |