From ed48c70b907a5411caf7f797e50c0a4c243ac328 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 5 May 2014 16:27:59 +1200 Subject: [PATCH] s4:service_task: explicitly use dcerpc_binding_handle_set_sync_ev() for irpc This indicates that we're using nested event loops... Andrew Bartlett Pair-Programmed-With: Stefan Metzmacher Change-Id: I7e147850566301a5ef2354b8615a044d121968b5 Signed-off-by: Andrew Bartlett Signed-off-by: Stefan Metzmacher --- source4/smbd/service_task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source4/smbd/service_task.c b/source4/smbd/service_task.c index 5d14fafec04..7422f2c3e9b 100644 --- a/source4/smbd/service_task.c +++ b/source4/smbd/service_task.c @@ -41,6 +41,8 @@ void task_server_terminate(struct task_server *task, const char *reason, bool fa irpc_handle = irpc_binding_handle_by_name(task, task->msg_ctx, "samba", &ndr_table_irpc); if (irpc_handle != NULL) { + /* Note: this makes use of nested event loops... */ + dcerpc_binding_handle_set_sync_ev(irpc_handle, event_ctx); r.in.reason = reason; dcerpc_samba_terminate_r(irpc_handle, task, &r); } -- 2.11.4.GIT