Adding debugging output to the fork, to try to trace down why the forked process has hung