digitalmars.D.bugs - [Issue 14003] New: fork() on MacOS X 10.10.1 results in a
- via Digitalmars-d-bugs (42/42) Jan 18 2015 https://issues.dlang.org/show_bug.cgi?id=14003
https://issues.dlang.org/show_bug.cgi?id=14003 Issue ID: 14003 Summary: fork() on MacOS X 10.10.1 results in a core.exception.InvalidMemoryOperationError (0) Product: D Version: D2 Hardware: x86_64 OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: druntime Assignee: nobody puremagic.com Reporter: lplus 126.com // DMD64 D Compiler v2.066.1 on OS X 10.10.1 // results core.exception.InvalidMemoryOperationError (0) import core.sys.posix.unistd; void main() { fork(); } // ok import core.sys.posix.unistd; extern(C): // ++++ void main() { fork(); } // ok import core.sys.posix.unistd; void main() { if (fork() == 0) { _exit(0); } } // ok import core.sys.posix.unistd; void main() { if (fork() == 0) { // call exec* } } // why ? --
Jan 18 2015