[compiler-rt] [sanitizer_common] [Darwin] Replace pty with pipe on posix_spawn path for spawning symbolizer (PR #170809)

Andrew Haberlandt via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 5 14:37:18 PST 2025


================
@@ -533,6 +539,8 @@ bool SymbolizerProcess::Restart() {
     CloseFile(input_fd_);
   if (output_fd_ != kInvalidFd)
     CloseFile(output_fd_);
+  if (child_stdin_fd_ != kInvalidFd)
+    CloseFile(output_fd_);
----------------
ndrewh wrote:

Typo + We should also set this to kInvalidFd after closing it so that we don't double-close in the destructor.

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


More information about the llvm-commits mailing list