failtest: override getpid() as well.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 20 May 2011 06:20:58 +0000 (15:50 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 20 May 2011 06:20:58 +0000 (15:50 +0930)
commit371a31d946c1055e8b7f7d9cec2b7f617206aeaf
treebb787adebc77098ea23cbbf1410594e31934dcac
parent72dc7d42c92fcfbafcc7e3b3b1518c9aa4a2e874
failtest: override getpid() as well.

TDB2 tracks locks using getpid(), and gets upset when we fork behind
its back.
ccan/failtest/failtest.c
ccan/failtest/failtest_override.h
ccan/failtest/failtest_proto.h