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) 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 <[email protected]> cherry picked and squashed from commits: - 7bd8d52 - 24d9bd1 - 3875408
- Loading branch information
1 parent
e94778b
commit af4dd0a
Showing
9 changed files
with
136 additions
and
18 deletions.
There are no files selected for viewing
Binary file modified
BIN
+496 Bytes
(100%)
core/org.eclipse.cdt.core.linux.aarch64/os/linux/aarch64/libspawner.so
Binary file not shown.
Binary file modified
BIN
+848 Bytes
(100%)
core/org.eclipse.cdt.core.linux.ppc64le/os/linux/ppc64le/libspawner.so
Binary file not shown.
Binary file modified
BIN
+4.59 KB
(120%)
core/org.eclipse.cdt.core.linux.x86_64/os/linux/x86_64/libspawner.so
Binary file not shown.
Binary file modified
BIN
+544 Bytes
(100%)
core/org.eclipse.cdt.core.macosx/os/macosx/aarch64/libspawner.jnilib
Binary file not shown.
Binary file modified
BIN
+552 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
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
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
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