From: Stefan Metzmacher Date: Fri, 17 Jul 2026 11:21:26 +0000 (+0200) Subject: s3:g_lock: let g_lock_trylock() debug if exclusive locker died X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9763bf56eb541a1a0f93d2a39675bb9cccf411d;p=thirdparty%2Fsamba.git s3:g_lock: let g_lock_trylock() debug if exclusive locker died Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index d091fc05a2b..1a62c59b1a0 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -727,6 +727,8 @@ static NTSTATUS g_lock_trylock( if (!self_exclusive) { bool exists = serverid_exists(&lck.exclusive); if (!exists) { + DBG_INFO("Exclusive locker %s died -- removing\n", + server_id_str_buf(lck.exclusive, &tmp)); lck.exclusive = (struct server_id) { .pid=0 }; goto noexclusive; }