If I'm seeing it right, you're exiting the parent process too soon - and the log file is closed before the childs get a chance to write into it.
Try to outcomment the parent exit(), just to see if this diagnosis is correct.
If it is, consider keeping the parent alive till the last child finished it's work.