tdb2: fix bogus error from tdb_unlockall() after fork in tdb1 backend.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:08 +0000 (15:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:08 +0000 (15:31 +0930)
commitba5bb8eae6bcd230fd5321c618d6a9d56e74e7d1
tree5c9832a8169c68f1bac58c1705056911ce2c8f64
parentbef6f1b02e95370ecb2cb44be87c82afc9cb74b2
tdb2: fix bogus error from tdb_unlockall() after fork in tdb1 backend.

We're always allowed to unlock after a fork; by setting the count to 0
before calling the generic unlock function we don't trigger the pid
check.
ccan/tdb2/tdb1_lock.c