diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-04-15 01:02:42 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-18 15:00:20 +0200 |
commit | 94b603648fdb074eec1f208d423ed1349e3d3841 (patch) | |
tree | 3350b305f78d3bf80c4b97c8ac1c3f97a3c37540 | |
parent | 384282c35f7af5a52125cb02809a0c05d45b1138 (diff) | |
download | samba-94b603648fdb074eec1f208d423ed1349e3d3841.tar.gz samba-94b603648fdb074eec1f208d423ed1349e3d3841.tar.bz2 samba-94b603648fdb074eec1f208d423ed1349e3d3841.zip |
winbindd: call reinit_after_fork() in the child processes
metze
(This used to be commit 8e9fdef792e612e414444e7714a2fd4513892248)
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 5 | ||||
-rw-r--r-- | source3/winbindd/winbindd_dual.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index adb631b57b..fc1a9cae93 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -199,9 +199,8 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain) /* Leave messages blocked - we will never process one. */ - /* 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); } diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index 3c342e54a4..77fbe3c0ed 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/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); } |