[Issue 24715] std/process: Default to libc `closefrom` in spawnProcessPosix
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 23 05:02:18 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24715
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@the-horo updated dlang/phobos pull request #9048 "std/process: Default to libc
closefrom in spawnProcessPosix" fixing this issue:
- 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 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