1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

winbindd: call reinit_after_fork() in the child processes

metze
(This used to be commit 8e9fdef792)
This commit is contained in:
Stefan Metzmacher 2008-04-15 01:02:42 +02:00
parent 384282c35f
commit 94b603648f
2 changed files with 4 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);
}