[Issue 4368] Fork() on OS X 2.047 results in a core.thread.ThreadException
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 23 07:03:01 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4368
Heywood Floyd <soul8o8 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |soul8o8 at gmail.com
--- Comment #1 from Heywood Floyd <soul8o8 at gmail.com> 2010-06-23 07:02:57 PDT ---
// Workaround (+ possible clue to what the cause is)
import core.sys.posix.unistd,
core.thread, //++++
std.stdio;
void main()
{
auto pid = fork();
if( pid > 0 ) {
writeln( "Parent" );
} else if( pid == 0 ) {
thread_attachThis(); // ++++
writeln( "Child" );
} else {
writeln( "Failed to fork!" );
}
}:
--
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