[libc-commits] [libc] [libc][test] Fix death test timeouts and dead-code elimination in math tests. (PR #227966)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Thu Oct 1 04:16:24 PDT 2026
================
@@ -85,15 +96,18 @@ ProcessStatus invoke_in_subprocess(FunctionCaller *func, int timeout_ms) {
// No events requested so this call will only return after the timeout or if
// the pipes peer was closed, signaling the process exited.
if (LIBC_IMPL::poll(&poll_fd, 1, timeout_ms) == -1) {
+ LIBC_IMPL::close(pipe_fds[0]);
----------------
labath wrote:
maybe use scope_exit to close this end of the pipe ?
https://github.com/llvm/llvm-project/pull/227966
More information about the libc-commits
mailing list