1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00
cdt/core/org.eclipse.cdt.core.macosx
Andreas Dangel f40c48151c Speed up closing all file descriptors in the child process (Fixes #835)
When _SC_OPEN_MAX (max nr of open files limit per process) is a very
big number, then closing all possible file handles can take a while.
This change first tries to use the syscall close_range() if available,
falling back to use /proc/self/fd to close only open file handles,
and lastly falling back to the old way of closing all possible handles
one after another.
In general, the first or second approach should be available
which speeds up the pty spawning.

Refs JetBrains/pty4j#147
Copied from 04685d870f
(which is EPL 1.0)

Co-authored-by: Sergey Simonchik <sergey.simonchik@jetbrains.com>
cherry picked and squashed from commits:
- 7bd8d52c6c
- 24d9bd1834
- 3875408070
2024-06-28 21:47:00 -04:00
..
.settings Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
META-INF Prepare repo for 11.6.1 development 2024-06-24 08:30:00 -04:00
os/macosx Speed up closing all file descriptors in the child process (Fixes #835) 2024-06-28 21:47:00 -04:00
src/org/eclipse/cdt/internal/core/macosx Bug 540373: Cleanup: Add missing annotations 2018-11-22 21:51:31 +00:00
.classpath Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
.project Bug 566334: Turn on API Tooling & Analysis for all bundles 2020-08-24 17:50:56 -04:00
about.html [releng] Update all legal files with update_legal_files.sh 2022-04-13 13:42:35 -04:00
build.properties Bug 521515: Adopt native build support on jenkins 2020-08-06 20:55:42 -04:00
fragment.xml
plugin.properties Fixed "Key X is not found in localization properties file" warning 2020-08-28 21:32:18 +02:00
pom.xml Prepare repo for 11.6.1 development 2024-06-24 08:30:00 -04:00