1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 09:16:02 +02:00
cdt/core/org.eclipse.cdt.core.native
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 Bump version of o.e.cdt.core.native 2024-06-23 12:07:26 -04:00
native_src Speed up closing all file descriptors in the child process (Fixes #835) 2024-06-27 20:08:16 -04:00
schema Bug 521515 - Access Windows registry using JNA 2020-07-18 08:36:44 +02:00
src/org/eclipse/cdt ProcessFactory.java : envpToEnvMap() consider null envp (#195) 2022-12-06 16:05:28 -05:00
.classpath Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
.options Bug 568079: Hook into Eclipse tracing system for native code 2020-11-04 13:37:24 -05:00
.project Bug 568079: Format C/C++ code 2020-10-24 16:54:40 -04:00
about.html [releng] Update all legal files with update_legal_files.sh 2022-04-13 13:42:35 -04:00
about.ini Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
about.mappings Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
about.properties Copyright year bumps 2024-02-21 16:59:16 +02:00
build.properties Bug 521515: Do not log every failed access attempt 2020-08-18 14:52:26 -04:00
cdt_logo_icon32.png Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
plugin.properties Bug 568728: Drop execute permission on files 2020-11-18 17:38:22 +01:00
plugin.xml Bug 521515 - Access Windows registry using JNA 2020-07-18 08:36:44 +02:00
pom.xml Bump version of o.e.cdt.core.native 2024-06-23 12:07:26 -04:00