in reply to problems with fork from thread

So it seems if I can get a clean exit from the forked process if i do threads->exit().
But the script will still get stuck after a random number of forked processes.