mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s3:winbindd move reinit_after_fork() back out of winbindd_register_handlers
This particular init function needs to be done in a native Samba3 build, but it turns out to be difficult for s3compat, which has other code listening on the sockets. Andrew Bartlett
This commit is contained in:
parent
19f4229fff
commit
d33c41fbf5
@ -1022,18 +1022,6 @@ bool winbindd_use_cache(void)
|
||||
void winbindd_register_handlers(void)
|
||||
{
|
||||
struct tevent_timer *te;
|
||||
/* Don't use winbindd_reinit_after_fork here as
|
||||
* we're just starting up and haven't created any
|
||||
* winbindd-specific resources we must free yet. JRA.
|
||||
*/
|
||||
|
||||
if (!NT_STATUS_IS_OK(reinit_after_fork(winbind_messaging_context(),
|
||||
winbind_event_context(),
|
||||
false))) {
|
||||
DEBUG(0,("reinit_after_fork() failed\n"));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* Setup signal handlers */
|
||||
|
||||
if (!winbindd_setup_sig_term_handler(true))
|
||||
@ -1298,6 +1286,18 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
TimeInit();
|
||||
|
||||
/* Don't use winbindd_reinit_after_fork here as
|
||||
* we're just starting up and haven't created any
|
||||
* winbindd-specific resources we must free yet. JRA.
|
||||
*/
|
||||
|
||||
if (!NT_STATUS_IS_OK(reinit_after_fork(winbind_messaging_context(),
|
||||
winbind_event_context(),
|
||||
false))) {
|
||||
DEBUG(0,("reinit_after_fork() failed\n"));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
winbindd_register_handlers();
|
||||
|
||||
/* setup listen sockets */
|
||||
|
Loading…
x
Reference in New Issue
Block a user