mirror of
https://github.com/jmcorgan/fips.git
synced 2026-10-05 19:18:25 +00:00
Three native client tests stand in for the daemon: they send a socket to the client and then dropped their own copy straight away. Until the client read the message, the message was the socket's only reference, and Darwin's descriptor collector can flush such a socket, so the tests failed now and then on macOS. Each now keeps its copy until the client holds the descriptor, as the daemon itself does. Two of them also provoke a collection in that window, so a regression can show on macOS without waiting for a stray collection; in the bind test the stand-in daemon keeps its copy until the client closes the connection. A comment in the native API tests still described the earlier wait for a closed flow, which watched only the reader's close flag. It now says what the wait observes, a flagged or forgotten flow, and why neither means the release has been served yet.