Die with an appropriate error if do_fork() fails.