forked from eclipse-cdt/cdt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up closing all file descriptors in the child process (Fixes ecl…
…ipse-cdt#835) _This commit adds to eclipse-cdt#840 7bd8d52 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 JetBrains/pty4j@04685d8 (which is EPL 1.0) Co-authored-by: Sergey Simonchik <sergey.simonchik@jetbrains.com>
- Loading branch information
1 parent
c9fa638
commit 3875408
Showing
6 changed files
with
67 additions
and
8 deletions.
There are no files selected for viewing
Binary file modified
BIN
+4.09 KB
(120%)
core/org.eclipse.cdt.core.linux.aarch64/os/linux/aarch64/libspawner.so
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
core/org.eclipse.cdt.core.linux.ppc64le/os/linux/ppc64le/libspawner.so
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
core/org.eclipse.cdt.core.linux.x86_64/os/linux/x86_64/libspawner.so
Binary file not shown.
Binary file modified
BIN
+64 Bytes
(100%)
core/org.eclipse.cdt.core.macosx/os/macosx/aarch64/libspawner.jnilib
Binary file not shown.
Binary file modified
BIN
+72 Bytes
(100%)
core/org.eclipse.cdt.core.macosx/os/macosx/x86_64/libspawner.jnilib
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters