[Issue 11378] implicit runtime initialization/finalization is broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 30 10:34:29 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11378
Martin Krejcirik <mk at krej.cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |mk at krej.cz
Resolution|FIXED |
--- Comment #5 from Martin Krejcirik <mk at krej.cz> 2013-10-30 18:34:26 CET ---
I've noticed the following program now segfaults on exit. In case calling
exit() is now not possible, please document the correct way how to do it (I
haven't found any).
---------------------
import std.concurrency, std.c.stdlib;
int main(string[] args)
{
spawn(&thread);
return 0;
}
void thread()
{
while(1)
{
receive(
(OwnerTerminated o) { exit(EXIT_SUCCESS); } /* segfault on exit */
);
}
}
---------------------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list