From: Volker Lendecke Date: Wed, 27 May 2020 13:45:58 +0000 (+0200) Subject: smbd: Propagate reload-config message to all worker smbds X-Git-Tag: talloc-2.3.2~448 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f022c3f8b7e7bc6052fc5159972598c892b1fa;p=thirdparty%2Fsamba.git smbd: Propagate reload-config message to all worker smbds Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Sep 23 20:40:48 UTC 2020 on sn-devel-184 --- diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 3347519ea4f..153dd3c9323 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -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); } /*******************************************************************