1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/core/org.eclipse.cdt.core.macosx
Andreas Dangel 3875408070 Speed up closing all file descriptors in the child process (Fixes #835)
_This commit adds to #840 7bd8d52c6c to apply the same fix to
another place that does the same operation on all fds._

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>
2024-06-27 20:08:16 -04:00
..
.settings Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
META-INF Prepare repo for 11.7.0 development (#813) 2024-06-05 13:19:53 -04:00
os/macosx Speed up closing all file descriptors in the child process (Fixes #835) 2024-06-27 20:08:16 -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 Made all of the plugins OSGi components. 2005-11-15 21:33:43 +00:00
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.7.0 development (#813) 2024-06-05 13:19:53 -04:00