summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes2
-rw-r--r--event.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changes b/Changes
index e98af8a..eb03147 100644
--- a/Changes
+++ b/Changes
@@ -7,6 +7,8 @@ Revision history for libev, a high-performance and full-featured event loop.
- declare functions defined in ev.h as inline if
C99 or gcc are available.
- enable inlining with gcc versions 2 and 3.
+ - event_base_loopexit should return 0 on success
+ (W.C.A. Wijngaards).
3.2 Wed Apr 2 17:11:19 CEST 2008
- fix a 64 bit overflow issue in the select backend,
diff --git a/event.c b/event.c
index 714f345..36fe7d3 100644
--- a/event.c
+++ b/event.c
@@ -359,7 +359,7 @@ int event_base_loopexit (struct event_base *base, struct timeval *tv)
ev_once (EV_A_ -1, 0, after >= 0. ? after : 0., x_loopexit_cb, (void *)base);
- return -1;
+ return 0;
}
struct x_once