www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16006] New: Investigate adding fork() to std.process

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

          Issue ID: 16006
           Summary: Investigate adding fork() to std.process
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com
                CC: code dawg.eu

I wonder how far we can go with providing a safe-ish fork() in std.process.

Most importantly, what needs to be done:

- Making sure we don't fork() during a GC cycle
- Unregistering all threads from the runtime in the child

Locks held by other threads will remain held, but this would be an application
bug and fairly easy to diagnose.

Anything else?

--
May 09 2016