[Issue 24715] New: std/process: Default to libc `closefrom` in spawnProcessPosix

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 23 04:59:09 UTC 2024


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

          Issue ID: 24715
           Summary: std/process: Default to libc `closefrom` in
                    spawnProcessPosix
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: a.horodniceanu at proton.me

The current implementation of spawnProcessPosix is broken on systems with a
large `ulimit -n` because it always OOMs making it impossible to spawn
processes. Using the libc implementation, when available, for doing file
descriptor operations en-mass solves this problem.

--


More information about the Digitalmars-d-bugs mailing list