mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
winbindd: call reinit_after_fork() in the child processes
metze
This commit is contained in:
parent
056ff094ad
commit
8e9fdef792
@ -199,9 +199,8 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain)
|
|||||||
|
|
||||||
/* Leave messages blocked - we will never process one. */
|
/* Leave messages blocked - we will never process one. */
|
||||||
|
|
||||||
/* tdb needs special fork handling */
|
if (!reinit_after_fork(winbind_messaging_context())) {
|
||||||
if (tdb_reopen_all(1) == -1) {
|
DEBUG(0,("reinit_after_fork() failed\n"));
|
||||||
DEBUG(0,("tdb_reopen_all failed.\n"));
|
|
||||||
_exit(0);
|
_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1005,9 +1005,8 @@ static bool fork_domain_child(struct winbindd_child *child)
|
|||||||
state.sock = fdpair[0];
|
state.sock = fdpair[0];
|
||||||
close(fdpair[1]);
|
close(fdpair[1]);
|
||||||
|
|
||||||
/* tdb needs special fork handling */
|
if (!reinit_after_fork(winbind_messaging_context())) {
|
||||||
if (tdb_reopen_all(1) == -1) {
|
DEBUG(0,("reinit_after_fork() failed\n"));
|
||||||
DEBUG(0,("tdb_reopen_all failed.\n"));
|
|
||||||
_exit(0);
|
_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user