summaryrefslogtreecommitdiff
path: root/ev_port.c
diff options
context:
space:
mode:
authorroot <root>2008-11-21 02:10:34 +0000
committerroot <root>2008-11-21 02:10:34 +0000
commit0b28ac4571929a861fbacc5ce9c61de21395debd (patch)
treed8317f0cacaaf0452a82a9787317d00c83c845c6 /ev_port.c
parent9e5319be42a6a99f784ce5ab421b0393adadc2ea (diff)
*** empty log message ***
Diffstat (limited to 'ev_port.c')
-rw-r--r--ev_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ev_port.c b/ev_port.c
index 4b41bb7..c2dde65 100644
--- a/ev_port.c
+++ b/ev_port.c
@@ -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");