summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-26 22:07:50 +1100
committerAndrew Tridgell <tridge@samba.org>2010-03-26 22:07:50 +1100
commit772839640e11664e1b1304d7f95146613d6ac1ac (patch)
treed5e6474da4dc67cc5f4f6b830e6dfa1741171b38 /source3/lib/util.c
parent789d67c4992e008fe17b830d3b23e3b95a4e70d9 (diff)
downloadsamba-772839640e11664e1b1304d7f95146613d6ac1ac.tar.gz
samba-772839640e11664e1b1304d7f95146613d6ac1ac.tar.bz2
samba-772839640e11664e1b1304d7f95146613d6ac1ac.zip
s3-event: switch s3 to using tevent_re_initialise()
This correctly initialises the event backend, and checks for errors (thanks to Metze for suggesting this)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c4
1 files changed, 2 insertions, 2 deletions
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) {