Use struct process to manage diffs of stdout and stderr in functional tests.

Removed unneeded functions signal_name_alloc() and wait_for_child_process()
from main.c.