From 2d21fe079fb57e55d9bac0c69d8527013bf4fbc7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 22 Jul 2011 14:55:32 +1000 Subject: s4-messaging: fixed the removal of messaging sockets in child tasks when a child task exits we were firing a destructor on any inherited messaging contexts, which could trigger a removal of the parents message socket and messaging database entry. This adds a new auto_remove flag to imessaging_init(), and exposes the cleanup code for use by the stream service. Pair-Programmed-With: Andrew Bartlett Autobuild-User: Andrew Tridgell Autobuild-Date: Fri Jul 22 08:09:06 CEST 2011 on sn-devel-104 --- source4/smbd/service_task.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/smbd/service_task.c') diff --git a/source4/smbd/service_task.c b/source4/smbd/service_task.c index 32c44cf6603..f68805fde03 100644 --- a/source4/smbd/service_task.c +++ b/source4/smbd/service_task.c @@ -79,9 +79,9 @@ static void task_server_callback(struct tevent_context *event_ctx, task->lp_ctx = lp_ctx; task->msg_ctx = imessaging_init(task, - lpcfg_imessaging_path(task, task->lp_ctx), - task->server_id, - task->event_ctx); + lpcfg_imessaging_path(task, task->lp_ctx), + task->server_id, + task->event_ctx, false); if (!task->msg_ctx) { task_server_terminate(task, "imessaging_init() failed", true); return; -- cgit v1.2.1