summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-30 16:38:31 +0200
committerVolker Lendecke <vlendec@samba.org>2011-03-30 18:36:50 +0200
commit8f4e39f6f7636ad36d686a52aaefc18a411a7f02 (patch)
tree7034e5d823cef9c4726e777cb3a7052520e09695 /source3
parent220db5aad629451d24fcf678a5aa2f3637bc5eeb (diff)
downloadsamba-8f4e39f6f7636ad36d686a52aaefc18a411a7f02.tar.gz
samba-8f4e39f6f7636ad36d686a52aaefc18a411a7f02.tar.bz2
samba-8f4e39f6f7636ad36d686a52aaefc18a411a7f02.zip
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 <vlendec@samba.org> Autobuild-Date: Wed Mar 30 18:36:50 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/g_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c
index 7a9161e7a6..184da9b4fd 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()) {