]> git.ozlabs.org Git - ccan/commit
tdb2: check pid before unlock.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 10 May 2011 01:37:21 +0000 (11:07 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 10 May 2011 01:37:21 +0000 (11:07 +0930)
commitf6900d2358ca0ec2f2dc776b9e42e4fca7bffbdf
tree8b81ec244ed4813534fae35c9251bfd7978c01a0
parent18fe5ef012a96014b9e61e48616e682b4a5708a2
tdb2: check pid before unlock.

The original code assumed that unlocking would fail if we didn't have a lock;
this isn't true (at least, on my machine).  So we have to always check the
pid before unlocking.
ccan/tdb2/lock.c
ccan/tdb2/test/run-fork-test.c