From 2de641d051f2246f1cea94dab8a452a7afa4c8d9 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Mon, 22 Sep 2025 04:50:36 +0000 Subject: [PATCH] Don't redirect spawned ABCs' stderr to our pipe. popen() doesn't do this and we should emulate the behavior of popen() as much as possible. --- passes/techmap/abc.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index c17f85afd..06b30b9b3 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -244,10 +244,6 @@ std::optional spawn_abc(const char* abc_exe, DeferredLogs &logs) { logs.log_error("posix_spawn_file_actions_adddup2 failed"); return std::nullopt; } - if (posix_spawn_file_actions_adddup2(&file_actions, from_child_pipe[1], STDERR_FILENO) != 0) { - logs.log_error("posix_spawn_file_actions_adddup2 failed"); - return std::nullopt; - } if (posix_spawn_file_actions_addclose(&file_actions, to_child_pipe[0]) != 0) { logs.log_error("posix_spawn_file_actions_addclose failed"); return std::nullopt;