git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8d203d3
)
s3: reinit_after_fork() should reinit the event context before the messaging context
author
Stefan Metzmacher
<metze@samba.org>
Wed, 14 Jan 2009 11:21:43 +0000
(12:21 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 19 Jan 2009 23:41:20 +0000
(
00:41
+0100)
Because messaging_reinit() may add events to the event context, which will
removed by event_context_reinit().
metze
source3/lib/util.c
patch
|
blob
|
history
diff --git
a/source3/lib/util.c
b/source3/lib/util.c
index 70eabbfa99e9fb80a1751c49b7524e9477dc6008..2485d1def575049c50e88a3762d9a1cf2d5fa4ea 100644
(file)
--- a/
source3/lib/util.c
+++ b/
source3/lib/util.c
@@
-966,6
+966,10
@@
bool reinit_after_fork(struct messaging_context *msg_ctx,
return false;
}
+ if (ev_ctx) {
+ event_context_reinit(ev_ctx);
+ }
+
if (msg_ctx) {
/*
* For clustering, we need to re-init our ctdbd connection after the
@@
-979,10
+983,6
@@
bool reinit_after_fork(struct messaging_context *msg_ctx,
}
}
- if (ev_ctx) {
- event_context_reinit(ev_ctx);
- }
-
return true;
}