www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15511] New: fork: Invalid memory operation

https://issues.dlang.org/show_bug.cgi?id=15511

          Issue ID: 15511
           Summary: fork: Invalid memory operation
           Product: D
           Version: D2
          Hardware: x86_64
               URL: http://dlang.org/
                OS: Mac OS X
            Status: NEW
          Severity: critical
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: changlon gmail.com

```d
import core.sys.posix.unistd;
void main(string[] args){
    auto pid = fork() ;
}
```

throw this:

core.exception.InvalidMemoryOperationError src/core/exception.d(679): Invalid
memory operation
----------------

 dmd -v
DMD64 D Compiler v2.069

--
Jan 03