]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: setup cleanupd *after* the scavenger
authorRalph Boehme <slow@samba.org>
Sun, 20 May 2018 16:47:37 +0000 (18:47 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:37 +0000 (10:18 +0000)
This ensure the private scavenger state is initialized in the cleanupd
child which is used in scavegenger_schedule_disconnected().

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/server.c

index 1509ae02256ec1873f762db726cf4a7708dd16a3..a54a80ac5d914f60468b1db5f8710d2b15925178 100644 (file)
@@ -2430,13 +2430,6 @@ quic_disabled:
                exit_daemon("Samba cannot init notification", EACCES);
        }
 
-       if (!cleanupd_init(
-                   msg_ctx,
-                   cmdline_daemon_cfg->interactive,
-                   &parent->cleanupd)) {
-               exit_daemon("Samba cannot init the cleanupd", EACCES);
-       }
-
        if (!messaging_parent_dgm_cleanup_init(msg_ctx)) {
                exit(1);
        }
@@ -2445,6 +2438,13 @@ quic_disabled:
                exit_daemon("Samba cannot init scavenging", EACCES);
        }
 
+       if (!cleanupd_init(
+                   msg_ctx,
+                   cmdline_daemon_cfg->interactive,
+                   &parent->cleanupd)) {
+               exit_daemon("Samba cannot init the cleanupd", EACCES);
+       }
+
        if (!W_ERROR_IS_OK(registry_init_full()))
                exit_daemon("Samba cannot init registry", EACCES);