Any tool to list exclusive locks for a specific process?
I have a parent process that dbopen opens a database with:
O_EXLOCK _RDWR.
It has a child process that also does same (two different
places).
They are only open for a moment before the
db->close(db);
They should block.
It seems to me that they aren't locking within this
program.
I added a lock file to test. It creates a lock file
immediately after
every dbopen. And closes and removes the lock file after
every
db->close(db). But I am getting "File exists"
for creating my lock files.
(Not very often.) It appears that my dbopen is not locking
or not
blocking.
My database is getting corrupted probably due to removals or
changes or
additions at same time by different processes due to not
honoring the
exclusive lock.
I am researching this more.
Jeremy C. Reed
|