From d9f71d0b6a8dc9be89dc78dff081401940bfa57d 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 (cherry picked from commit 8f4e39f6f7636ad36d686a52aaefc18a411a7f02) --- 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 dfbcf8445c0..35ff1f1d6eb 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -396,7 +396,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