summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/events.c6
-rw-r--r--source3/lib/util.c4
2 files changed, 2 insertions, 8 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 651b25133b..21a13b63fb 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -192,12 +192,6 @@ static int s3_event_loop_once(struct tevent_context *ev, const char *location)
return 0;
}
-void event_context_reinit(struct tevent_context *ev)
-{
- tevent_common_context_destructor(ev);
- return;
-}
-
static int s3_event_context_init(struct tevent_context *ev)
{
return 0;
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 68f26b8393..2339cfcc2a 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -931,8 +931,8 @@ NTSTATUS reinit_after_fork(struct messaging_context *msg_ctx,
goto done;
}
- if (ev_ctx) {
- event_context_reinit(ev_ctx);
+ if (ev_ctx && tevent_re_initialise(ev_ctx) != 0) {
+ smb_panic(__location__ ": Failed to re-initialise event context");
}
if (msg_ctx) {