s3: Avoid starving locks when many processes die at the same time
commitc5babceaa95fd163f785e1dfe5521b93402e06a3
authorVolker Lendecke <vl@samba.org>
Tue, 16 Feb 2010 11:28:53 +0000 (16 12:28 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 31 Mar 2010 15:54:32 +0000 (31 17:54 +0200)
treedc77091c1b33cc413e9081f1248493e333e0fb8b
parent7e787c513e47875e7dbfc195d8bd1cecec3f08ce
s3: Avoid starving locks when many processes die at the same time

In g_lock_unlock we have a little race between the process_exists and
messaging_send call: We only send to 5 waiters now, they all might have died
between us checking their existence and sending the message. This change makes
g_lock_lock retry at least once every minute.
(cherry picked from commit be919d6faed198cdc29322a4d9491946c0b044b3)
source3/lib/g_lock.c