in reply to Re^2: Child process dies
in thread Child process dies

Okay, then, swap your processes' parentage. Make the "log maintainer" be the parent, and have it spawn the "doit" job. Then, when the doit job exits, the log maintainer job will notice it, and you can have it shut down gracefully.....

Roboticus