From 1f13d512d45eaa99023bc41cf6ec03db8cb4508e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 23 Feb 2011 21:42:25 +0100 Subject: s3:rpc_client: we need to pass a non-blocking socket to tstream_bsd_existing_socket() metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Thu Feb 24 07:43:59 CET 2011 on sn-devel-104 --- source3/rpc_client/rpc_transport_sock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/rpc_client/rpc_transport_sock.c b/source3/rpc_client/rpc_transport_sock.c index fa5c71d7d0..58f194f262 100644 --- a/source3/rpc_client/rpc_transport_sock.c +++ b/source3/rpc_client/rpc_transport_sock.c @@ -31,6 +31,8 @@ NTSTATUS rpc_transport_sock_init(TALLOC_CTX *mem_ctx, int fd, int ret; NTSTATUS status; + set_blocking(fd, false); + ret = tstream_bsd_existing_socket(mem_ctx, fd, &stream); if (ret != 0) { status = map_nt_error_from_unix(errno); -- cgit