http://d.puremagic.com/issues/show_bug.cgi?id=11309
--- Comment #3 from Martin Krejcirik <[email protected]> 2013-10-23 01:31:28 CEST --- If it's any help, try adding the folowing terminate() function and call it at the end of main(). The thread will end correctly (but the main segfaults). I was using it like this in 2.063 and it worked. I guess something has changed in druntime. extern (C) { // These are for control of termination void rt_moduleTlsDtor(); void thread_joinAll(); void rt_moduleDtor(); void gc_term(); void _STD_critical_term(); void _STD_monitor_staticdtor(); } /* end extern C */ void terminate() { // Phobos termination (since we can't really make main() return): rt_moduleTlsDtor(); thread_joinAll(); rt_moduleDtor(); gc_term(); version (Posix) { _STD_critical_term(); _STD_monitor_staticdtor(); } exit(EXIT_SUCCESS); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
