On 30/08/2014 19:09, JD wrote:
My questions: 1. Are there any special considerations w.r.t. the GC after using fork()? Or must it be disabled? 2. Is it allowed to use stdlib's exit() without cleaning up after the runtime (as a normal end of program probably does)? Or is there a safe D exit()?
For the second question, Runtime.terminate() from the core.runtime package might be a possible answer.
http://dlang.org/phobos/core_runtime.html#.Runtime.terminate I don't know how calling Runtime.terminate() in forks behaves though.