summaryrefslogtreecommitdiffstats
path: root/source/winbindd/winbindd_dual.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-04-15 01:02:42 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-18 15:00:20 +0200
commit8e9fdef792e612e414444e7714a2fd4513892248 (patch)
tree0cd439427c0a4ec68a0aae0deb9d8a4e93b91b6a /source/winbindd/winbindd_dual.c
parent056ff094ad2c59992cfdb8b29696c08dab4113d7 (diff)
downloadsamba-8e9fdef792e612e414444e7714a2fd4513892248.tar.gz
samba-8e9fdef792e612e414444e7714a2fd4513892248.tar.xz
samba-8e9fdef792e612e414444e7714a2fd4513892248.zip
winbindd: call reinit_after_fork() in the child processes
metze
Diffstat (limited to 'source/winbindd/winbindd_dual.c')
-rw-r--r--source/winbindd/winbindd_dual.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c
index 3c342e54a47..77fbe3c0ed4 100644
--- a/source/winbindd/winbindd_dual.c
+++ b/source/winbindd/winbindd_dual.c
@@ -1005,9 +1005,8 @@ static bool fork_domain_child(struct winbindd_child *child)
state.sock = fdpair[0];
close(fdpair[1]);
- /* tdb needs special fork handling */
- if (tdb_reopen_all(1) == -1) {
- DEBUG(0,("tdb_reopen_all failed.\n"));
+ if (!reinit_after_fork(winbind_messaging_context())) {
+ DEBUG(0,("reinit_after_fork() failed\n"));
_exit(0);
}