1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

Reverted my earlier change. It was incorrect. We must be protected by

pidfile before doing secrets_init().
Jeremy.
This commit is contained in:
Jeremy Allison -
parent ffb7632d05
commit f8a0e6ad8b

View File

@ -853,8 +853,11 @@ static void usage(void)
fstrcpy(global_myworkgroup, lp_workgroup());
if (!interactive)
if (!interactive) {
become_daemon();
pidfile_create("winbindd");
}
#if HAVE_SETPGID
/*
@ -889,10 +892,6 @@ static void usage(void)
return 1;
}
/* Only create the pidfile when we're ready to receive requests. */
if (!interactive)
pidfile_create("winbindd");
/* Loop waiting for requests */
process_loop(accept_sock);