ntdb: make fork test more thorough.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Jun 2012 13:00:28 +0000 (22:30 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jun 2012 03:38:06 +0000 (05:38 +0200)
commit8a7c535db1f40a0f7c43d4e36227ad172bf6a654
treecbde1eebf6f28c9e77338294fc2c63a5fb3e44ac
parentd48f6f884b2789828bb183249faf3918ec4e363a
ntdb: make fork test more thorough.

We document that the child of a fork() can do a brunlock() if the parent
does a brlock: we should not log an error when they do this.

Also, test the case where we fork() and return inside a parse function
(which is allowed).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ntdb/lock.c
lib/ntdb/test/api-fork-test.c