summaryrefslogtreecommitdiffstats
path: root/src/util/k5ev
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-09-12 16:08:04 +0000
committerGreg Hudson <ghudson@mit.edu>2011-09-12 16:08:04 +0000
commitb41978c1b227dab6337cdaa34002e51d1b708d5a (patch)
tree0275e10d89603238adc01f1ae1a7edece5b6c6f5 /src/util/k5ev
parent1ab76e68154eb7a3ad07b56f284d812134e80a0e (diff)
downloadkrb5-b41978c1b227dab6337cdaa34002e51d1b708d5a.tar.gz
krb5-b41978c1b227dab6337cdaa34002e51d1b708d5a.tar.xz
krb5-b41978c1b227dab6337cdaa34002e51d1b708d5a.zip
Update verto sources to 2011-09-10 versions
Also update verto-k5ev.c to match changes to verto-libev.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25172 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/k5ev')
-rw-r--r--src/util/k5ev/verto-k5ev.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/util/k5ev/verto-k5ev.c b/src/util/k5ev/verto-k5ev.c
index fce4de8d5..134192fac 100644
--- a/src/util/k5ev/verto-k5ev.c
+++ b/src/util/k5ev/verto-k5ev.c
@@ -70,6 +70,12 @@ k5ev_ctx_break(void *ctx)
}
static void
+k5ev_ctx_reinitialize(void *ctx)
+{
+ ev_loop_fork(ctx);
+}
+
+static void
libev_callback(EV_P_ ev_watcher *w, int revents)
{
if (verto_get_type(w->data) == VERTO_EV_TYPE_CHILD)
@@ -127,14 +133,19 @@ k5ev_ctx_del(void *ctx, const verto_ev *ev, void *evpriv)
switch (verto_get_type(ev)) {
case VERTO_EV_TYPE_IO:
ev_io_stop(ctx, evpriv);
+ break;
case VERTO_EV_TYPE_TIMEOUT:
ev_timer_stop(ctx, evpriv);
+ break;
case VERTO_EV_TYPE_IDLE:
ev_idle_stop(ctx, evpriv);
+ break;
case VERTO_EV_TYPE_SIGNAL:
ev_signal_stop(ctx, evpriv);
+ break;
case VERTO_EV_TYPE_CHILD:
ev_child_stop(ctx, evpriv);
+ break;
default:
break;
}
@@ -152,13 +163,13 @@ VERTO_MODULE(k5ev, NULL,
VERTO_EV_TYPE_CHILD);
verto_ctx *
-verto_new_k5ev()
+verto_new_k5ev(void)
{
return verto_convert_k5ev(ev_loop_new(EVFLAG_AUTO));
}
verto_ctx *
-verto_default_k5ev()
+verto_default_k5ev(void)
{
return verto_convert_k5ev(ev_default_loop(EVFLAG_AUTO));
}