> I don't really like the idea of using the environment to communicate with
> threads, since it leaks to child processes...

That's the purpose.