The call to messaging_send_all() skips ourselves. This is tested in
source3/script/tests/test_rpcclientsrvsvc.sh, which right now we only
survive because the rpcclient call spawns a new smbd, which reloads
smb.conf. Once you start running srvsvcd in a long-running daemon,
this fails.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
ret = smbrun(command, NULL, NULL);
if (ret == 0) {
+ reload_services(NULL, NULL, false);
+
/* Tell everyone we updated smb.conf. */
messaging_send_all(p->msg_ctx, MSG_SMB_CONF_UPDATED,
NULL, 0);