From d0108d7058366cf8dc62007cc339a1a7540b8155 Mon Sep 17 00:00:00 2001 From: Boris Buegling Date: Thu, 9 Nov 2023 13:34:25 -0800 Subject: [PATCH] Make close errors non-fatal rdar://117927523 --- Sources/TSCBasic/Process.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/TSCBasic/Process.swift b/Sources/TSCBasic/Process.swift index 5a396823..a6c7c0ab 100644 --- a/Sources/TSCBasic/Process.swift +++ b/Sources/TSCBasic/Process.swift @@ -1250,8 +1250,8 @@ private func open(pipe: inout [Int32]) throws { private func close(fd: Int32) throws { func innerClose(_ fd: inout Int32) throws { let rv = TSCLibc.close(fd) - guard rv == 0 else { - throw SystemError.close(rv) + if rv != 0 { + print("\(SystemError.close(rv))") } } var innerFd = fd