]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Propagate reload-config message to all worker smbds
authorVolker Lendecke <vl@samba.org>
Wed, 27 May 2020 13:45:58 +0000 (15:45 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 23 Sep 2020 20:40:47 +0000 (20:40 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 23 20:40:48 UTC 2020 on sn-devel-184

source3/smbd/server.c

index 3347519ea4f57759279e6f2ebd5131edbb2127b7..153dd3c9323bbdc4766da78f138b1dec9d31c531 100644 (file)
@@ -101,6 +101,9 @@ struct smbd_child_pid {
  What to do when smb.conf is updated.
  ********************************************************************/
 
+static NTSTATUS messaging_send_to_children(struct messaging_context *msg_ctx,
+                                          uint32_t msg_type, DATA_BLOB* data);
+
 static void smbd_parent_conf_updated(struct messaging_context *msg,
                                     void *private_data,
                                     uint32_t msg_type,
@@ -121,6 +124,7 @@ static void smbd_parent_conf_updated(struct messaging_context *msg,
        if (!ok) {
                DBG_ERR("Failed to reinit guest info\n");
        }
+       messaging_send_to_children(msg, MSG_SMB_CONF_UPDATED, NULL);
 }
 
 /*******************************************************************