repurpose the child_functions array to be child_operations instead.
commit966d95c242e1b1c55f5f4b4215531be77e3cd84e
authorDave Jones <davej@redhat.com>
Wed, 26 Mar 2014 19:12:26 +0000 (26 12:12 -0700)
committerDave Jones <davej@redhat.com>
Wed, 26 Mar 2014 19:12:26 +0000 (26 12:12 -0700)
tree6e448c1a171dbf3b3721c7cc017bb56704d47f20
parentc8b07bf4a3ef67bc74c15ff3dc8a2a94cea1dc21
repurpose the child_functions array to be child_operations instead.

Instead of doing different things per child, we want to be able to have
a child do things other than just random syscalls.

This involves turning the child_random_syscalls() & child_process() functions
inside out, but should allow us to do a lot more interesting things in
children/ now.

For now the child_read_all_files() child is disabled (as it was previously).

I might reintroduce multiple child types later, but right now things in children/
should be 'one shot' and not involve lengthy loops, because we're going to be
moving the "we are making progress" indicators up into child_process too (See FIXME).
child.c
children/random-syscalls.c