1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/core
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
..
org.eclipse.cdt.core On createBuildConfiguration, reset project's ScannerInfoProvider (#817) 2024-06-12 08:56:47 -04:00
org.eclipse.cdt.core.linux Prepare repo for 11.7.0 development (#813) 2024-06-05 13:19:53 -04:00
org.eclipse.cdt.core.linux.aarch64 Speed up closing all file descriptors in the child process (Fixes #835) 2024-06-27 20:08:16 -04:00
org.eclipse.cdt.core.linux.ppc64le Speed up closing all file descriptors in the child process (Fixes #835) 2024-06-27 20:08:16 -04:00
org.eclipse.cdt.core.linux.x86_64 Speed up closing all file descriptors in the child process (Fixes #835) 2024-06-27 20:08:16 -04:00
org.eclipse.cdt.core.macosx Speed up closing all file descriptors in the child process (Fixes #835) 2024-06-27 20:08:16 -04:00
org.eclipse.cdt.core.native Speed up closing all file descriptors in the child process (Fixes #835) 2024-06-27 20:08:16 -04:00
org.eclipse.cdt.core.tests On createBuildConfiguration, reset project's ScannerInfoProvider (#817) 2024-06-12 08:56:47 -04:00
org.eclipse.cdt.core.win32 Prepare repo for 11.7.0 development (#813) 2024-06-05 13:19:53 -04:00
org.eclipse.cdt.core.win32.x86_64 Prepare repo for 11.7.0 development (#813) 2024-06-05 13:19:53 -04:00
org.eclipse.cdt.ui [#808] Support overriden default-editor-association in EditorUtility (#809) 2024-05-31 13:16:03 -04:00
org.eclipse.cdt.ui.tests Prepare repo for 11.7.0 development (#813) 2024-06-05 13:19:53 -04:00
pom.xml Prepare repo for 11.7.0 development (#813) 2024-06-05 13:19:53 -04:00