[Issue 16006] New: Investigate adding fork() to std.process

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 9 16:05:14 PDT 2016


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 at puremagic.com
          Reporter: thecybershadow at gmail.com
                CC: code at 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?

--


More information about the Digitalmars-d-bugs mailing list