summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-01-30 18:23:49 +0100
committerVolker Lendecke <vlendec@samba.org>2012-01-31 18:38:15 +0100
commit312228d0c89f83c9defaba268a2bb62365b0ce1b (patch)
tree6a73de23e5805dd3755f01d0057b572c91bfafe8 /source3
parent8972c92342211fefb3d76bc306f7fbc467089010 (diff)
downloadsamba-312228d0c89f83c9defaba268a2bb62365b0ce1b.tar.gz
samba-312228d0c89f83c9defaba268a2bb62365b0ce1b.tar.bz2
samba-312228d0c89f83c9defaba268a2bb62365b0ce1b.zip
s3: Fix "smbcontrol smbd close-share"
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 369b7ab450..10d59adbc6 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -269,6 +269,15 @@ static void smbd_parent_id_cache_delete(struct messaging_context *ctx,
messaging_send_to_children(ctx, msg_type, msg_data);
}
+static void smb_parent_force_tdis(struct messaging_context *ctx,
+ void* data,
+ uint32_t msg_type,
+ struct server_id srv_id,
+ DATA_BLOB* msg_data)
+{
+ messaging_send_to_children(ctx, msg_type, msg_data);
+}
+
static void add_child_pid(struct smbd_parent_context *parent,
pid_t pid)
{
@@ -806,6 +815,8 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent,
smb_pcap_updated);
messaging_register(msg_ctx, NULL, MSG_SMB_BRL_VALIDATE,
brl_revalidate);
+ messaging_register(msg_ctx, NULL, MSG_SMB_FORCE_TDIS,
+ smb_parent_force_tdis);
messaging_register(msg_ctx, NULL,
ID_CACHE_FLUSH, smbd_parent_id_cache_flush);