swift-testing icon indicating copy to clipboard operation
swift-testing copied to clipboard

Exit tests should suppress `SIGPIPE` on back channel pipes

Open grynspan opened this issue 9 months ago • 1 comments

Exit tests write over pipes to send data to/from the child process and should suppress SIGPIPE to avoid crashing either process on an edge case.

grynspan avatar May 20 '25 15:05 grynspan

There's not really a viable way to ignore SIGPIPE only on the pipes we own, but we can look at switching to a Unix socket instead for the back channel and passing MSG_NOSIGNAL as needed.

grynspan avatar May 22 '25 14:05 grynspan