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:
parent
384282c35f
commit
94b603648f
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user