summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README7
-rw-r--r--ev.c6
-rw-r--r--ev.h6
3 files changed, 11 insertions, 8 deletions
diff --git a/README b/README
index 1f3917d..0e756fd 100644
--- a/README
+++ b/README
@@ -1,5 +1,6 @@
-libev is modelled after libevent (http://monkey.org/~provos/libevent/), but aims
-to be faster and more correct, and also more featureful. Examples:
+libev is modelled (very losely) after libevent
+(http://monkey.org/~provos/libevent/), but aims to be faster and more
+correct, and also more featureful. Examples:
(comparisons relative to libevent-1.3e and libev-0.00)
@@ -56,6 +57,8 @@ to be faster and more correct, and also more featureful. Examples:
- libev handles EBADF gracefully by removing the offending fds.
+- doesn't rely on nonportable BSD header files.
+
whats missing?
- evdns, evhttp, bufferevent are missing, libev is only an even library at
diff --git a/ev.c b/ev.c
index 937f9bd..6fac39c 100644
--- a/ev.c
+++ b/ev.c
@@ -491,19 +491,19 @@ int ev_init (int flags)
/*****************************************************************************/
void
-ev_prefork (void)
+ev_fork_prepare (void)
{
/* nop */
}
void
-ev_postfork_parent (void)
+ev_fork_parent (void)
{
/* nop */
}
void
-ev_postfork_child (void)
+ev_fork_child (void)
{
#if EV_USE_EPOLL
if (ev_method == EVMETHOD_EPOLL)
diff --git a/ev.h b/ev.h
index d8f7ae1..a7898a5 100644
--- a/ev.h
+++ b/ev.h
@@ -173,9 +173,9 @@ int ev_version_major (void);
int ev_version_minor (void);
/* these three calls are suitable for plugging into pthread_atfork */
-void ev_prefork (void);
-void ev_postfork_parent (void);
-void ev_postfork_child (void);
+void ev_fork_prepare (void);
+void ev_fork_parent (void);
+void ev_fork_child (void);
extern ev_tstamp ev_now; /* time w.r.t. timers and the eventloop, updated after each poll */
ev_tstamp ev_time (void);