D daemon & GC?
Raphaƫl Jakse via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 31 09:43:37 PDT 2014
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.
More information about the Digitalmars-d-learn
mailing list