diff --git a/core/org.eclipse.cdt.core.linux.aarch64/os/linux/aarch64/libspawner.so b/core/org.eclipse.cdt.core.linux.aarch64/os/linux/aarch64/libspawner.so index 8eaf3f18eae..5abbeda17fd 100755 Binary files a/core/org.eclipse.cdt.core.linux.aarch64/os/linux/aarch64/libspawner.so and b/core/org.eclipse.cdt.core.linux.aarch64/os/linux/aarch64/libspawner.so differ diff --git a/core/org.eclipse.cdt.core.linux.ppc64le/os/linux/ppc64le/libspawner.so b/core/org.eclipse.cdt.core.linux.ppc64le/os/linux/ppc64le/libspawner.so index b472ea7639e..a064b0b1560 100755 Binary files a/core/org.eclipse.cdt.core.linux.ppc64le/os/linux/ppc64le/libspawner.so and b/core/org.eclipse.cdt.core.linux.ppc64le/os/linux/ppc64le/libspawner.so differ diff --git a/core/org.eclipse.cdt.core.linux.x86_64/os/linux/x86_64/libspawner.so b/core/org.eclipse.cdt.core.linux.x86_64/os/linux/x86_64/libspawner.so index 198c2952f93..e739435d35a 100755 Binary files a/core/org.eclipse.cdt.core.linux.x86_64/os/linux/x86_64/libspawner.so and b/core/org.eclipse.cdt.core.linux.x86_64/os/linux/x86_64/libspawner.so differ diff --git a/core/org.eclipse.cdt.core.macosx/os/macosx/aarch64/libspawner.jnilib b/core/org.eclipse.cdt.core.macosx/os/macosx/aarch64/libspawner.jnilib index 34c41c3623f..d667decc2c7 100755 Binary files a/core/org.eclipse.cdt.core.macosx/os/macosx/aarch64/libspawner.jnilib and b/core/org.eclipse.cdt.core.macosx/os/macosx/aarch64/libspawner.jnilib differ diff --git a/core/org.eclipse.cdt.core.macosx/os/macosx/x86_64/libspawner.jnilib b/core/org.eclipse.cdt.core.macosx/os/macosx/x86_64/libspawner.jnilib index 5f3406c40e9..682d532cf06 100755 Binary files a/core/org.eclipse.cdt.core.macosx/os/macosx/x86_64/libspawner.jnilib and b/core/org.eclipse.cdt.core.macosx/os/macosx/x86_64/libspawner.jnilib differ diff --git a/core/org.eclipse.cdt.core.native/native_src/unix/exec_unix.c b/core/org.eclipse.cdt.core.native/native_src/unix/exec_unix.c index 8afc663cdeb..129de40c99b 100644 --- a/core/org.eclipse.cdt.core.native/native_src/unix/exec_unix.c +++ b/core/org.eclipse.cdt.core.native/native_src/unix/exec_unix.c @@ -54,8 +54,9 @@ static int close_all_fds_using_parsing(unsigned int from_fd_inclusive) { #endif DIR *dirp = opendir(FD_DIR); - if (dirp == NULL) + if (dirp == NULL) { return -1; + } struct dirent *direntp; @@ -75,8 +76,9 @@ static int close_all_fds_using_parsing(unsigned int from_fd_inclusive) { static void close_all_fds_fallback(unsigned int from_fd_inclusive) { int fdlimit = sysconf(_SC_OPEN_MAX); - if (fdlimit == -1) + if (fdlimit == -1) { fdlimit = 65535; // arbitrary default, just in case + } for (int fd = from_fd_inclusive; fd < fdlimit; fd++) { close(fd); } @@ -84,10 +86,12 @@ static void close_all_fds_fallback(unsigned int from_fd_inclusive) { static void close_all_fds() { unsigned int from_fd = STDERR_FILENO + 1; - if (sys_close_range_wrapper(from_fd) == 0) + if (sys_close_range_wrapper(from_fd) == 0) { return; - if (close_all_fds_using_parsing(from_fd) == 0) + } + if (close_all_fds_using_parsing(from_fd) == 0) { return; + } close_all_fds_fallback(from_fd); }