From 8f4e39f6f7636ad36d686a52aaefc18a411a7f02 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 30 Mar 2011 16:38:31 +0200 Subject: [PATCH] s3: Fix g_lock_lock after the select/poll conversion Without clustering we don't have an fd to listen on, and sys_poll needs one element of space Autobuild-User: Volker Lendecke Autobuild-Date: Wed Mar 30 18:36:50 CEST 2011 on sn-devel-104 --- source3/lib/g_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index 7a9161e7a64..184da9b4fde 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -397,7 +397,7 @@ NTSTATUS g_lock_lock(struct g_lock_ctx *ctx, const char *name, status = NT_STATUS_NO_MEMORY; break; } - num_pollfds = 1; + num_pollfds = 0; #ifdef CLUSTER_SUPPORT if (lp_clustering()) { -- 2.11.4.GIT