diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-30 16:38:31 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-03-30 18:36:50 +0200 |
commit | 8f4e39f6f7636ad36d686a52aaefc18a411a7f02 (patch) | |
tree | 7034e5d823cef9c4726e777cb3a7052520e09695 | |
parent | 220db5aad629451d24fcf678a5aa2f3637bc5eeb (diff) | |
download | samba-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
-rw-r--r-- | source3/lib/g_lock.c | 2 |
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()) { |