failtest: save entire file contents.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Feb 2011 12:53:16 +0000 (23:23 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Feb 2011 12:53:16 +0000 (23:23 +1030)
commitf0d8f32b2868b84ec7e6bba8ae892950eef491c4
tree1503b32cd1ae01cd6c10b02981144fe930b6c970
parent43b5f24c016a7279d844767472782d7b81b15f60
failtest: save entire file contents.

The idea of saving files as we do writes doesn't work with mmap: this just
saves the entire contents of all open files before forking child, and
restores them afterwards.
ccan/failtest/failtest.c