[compiler-rt] compiler-rt: sanitizer_common: use close_range() instead of looping (PR #114442)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 13:51:13 PDT 2024


================
@@ -543,7 +543,11 @@ pid_t StartSubprocess(const char *program, const char *const argv[],
       internal_close(stderr_fd);
     }
 
+#  if SANITIZER_FREEBSD
+    internal_close_range(3, ~(fd_t)0, 0);
----------------
fmayer wrote:

prefer c++ style cast: https://llvm.org/docs/CodingStandards.html#prefer-c-style-casts

https://github.com/llvm/llvm-project/pull/114442


More information about the llvm-commits mailing list