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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 3 07:50:33 UTC 2024


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #9048 "std/process: Default to libc closefrom in
spawnProcessPosix" was merged into master:

- 48d581a1f509a7a302ea893e28939edb5b130622 by Andrei Horodniceanu:
  Fix Bugzilla 24715 - std/process: Default to libc `closefrom` in
spawnProcessPosix

  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 partially solves this problem.

  Signed-off-by: Andrei Horodniceanu <a.horodniceanu at proton.me>

https://github.com/dlang/phobos/pull/9048

--


More information about the Digitalmars-d-bugs mailing list