utils:ping_pong: add a -c switch to check the lock before reading/writing
authorMichael Adam <obnox@samba.org>
Tue, 6 Nov 2012 00:26:05 +0000 (01:26 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 19 Nov 2012 23:48:52 +0000 (00:48 +0100)
commit05cf7bce496674e1cc60c43f88d7dcdb4c5dfa06
treefe54534703144eb2311960237ba3eaca1d970ed1
parent8732e2356fae1f857365baaea3c13c8734246e85
utils:ping_pong: add a -c switch to check the lock before reading/writing

This is to verify that the fcntl F_GETLK call reports F_UNLCK if called
from a process already holding a lock. This is for example used by samba's
strict locking code in combination with "posix locking = true".

Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit 4f42d17b74ce891691eee1cead498959cc8e4837)
ctdb/utils/ping_pong/ping_pong.c