s3: Avoid starving locks when many processes die at the same time
authorVolker Lendecke <vl@samba.org>
Tue, 16 Feb 2010 11:28:53 +0000 (12:28 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 16 Feb 2010 12:21:10 +0000 (13:21 +0100)
commitbe919d6faed198cdc29322a4d9491946c0b044b3
treee8ec45fd481ebccaaed7811256ddaec3c8fc4da2
parent725b3654f831fbe0388cc09f46269903c9eef1d7
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.
source3/lib/g_lock.c