[Issue 14003] New: fork() on MacOS X 10.10.1 results in a core.exception.InvalidMemoryOperationError@(0)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jan 18 08:05:28 PST 2015
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 at puremagic.com
Reporter: lplus at 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 ?
--
More information about the Digitalmars-d-bugs
mailing list