summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-05-05 16:27:59 +1200
committerStefan Metzmacher <metze@samba.org>2014-05-13 00:08:12 +0200
commit6cbf3ecd6669f73d9a1b64118956b49439de74bc (patch)
treeea4b917485ac27fc4adc8e29268fa8066db5df10 /source4
parented48c70b907a5411caf7f797e50c0a4c243ac328 (diff)
downloadsamba-6cbf3ecd6669f73d9a1b64118956b49439de74bc.tar.gz
samba-6cbf3ecd6669f73d9a1b64118956b49439de74bc.tar.xz
samba-6cbf3ecd6669f73d9a1b64118956b49439de74bc.zip
s4:pyrpc: explicitly use dcerpc_binding_handle_set_sync_ev() for irpc
This indicates that we may use nested event loops... Andrew Bartlett Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Change-Id: Id014dcc68699c86cb99015a91a6979e30795f727 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/pyrpc_util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/librpc/rpc/pyrpc_util.c b/source4/librpc/rpc/pyrpc_util.c
index 314ad2cc8d7..226c884d3ef 100644
--- a/source4/librpc/rpc/pyrpc_util.c
+++ b/source4/librpc/rpc/pyrpc_util.c
@@ -83,6 +83,12 @@ static NTSTATUS pyrpc_irpc_connect(TALLOC_CTX *mem_ctx, const char *irpc_server,
return NT_STATUS_INVALID_PIPE_STATE;
}
+ /*
+ * Note: this allows nested event loops to happen,
+ * but as there's no top level event loop it's not that critical.
+ */
+ dcerpc_binding_handle_set_sync_ev(*binding_handle, event_ctx);
+
return NT_STATUS_OK;
}