s4:pyrpc: explicitly use dcerpc_binding_handle_set_sync_ev() for irpc
authorAndrew Bartlett <abartlet@samba.org>
Mon, 5 May 2014 04:27:59 +0000 (16:27 +1200)
committerStefan Metzmacher <metze@samba.org>
Mon, 12 May 2014 22:08:12 +0000 (00:08 +0200)
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>
source4/librpc/rpc/pyrpc_util.c

index 314ad2cc8d79d566e9d345693fdb122e253131b3..226c884d3ef4826ddba8bde54973d29ea54bab79 100644 (file)
@@ -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;
 }