August 23 [Issue 24715] New: std/process: Default to libc `closefrom` in spawnProcessPosix | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: a.horodniceanu@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. -- |
Copyright © 1999-2021 by the D Language Foundation