Repository navigation
socket: add MSG_NOSIGNAL for Apple targets - #2828
mbgrydeland wants to merge 3 commits into
Conversation
|
I tested this on real hardware, in case it helps review. macOS 27.2, arm64. A small C program closes the peer, then calls
So the flag is honoured there, and the value matches On "since when": in the published XNU sources the flag first appears in xnu-7195 (macOS 11 / iOS 14), both in Happy to share the test program if useful. |
This comment was marked as resolved.
This comment was marked as resolved.
fb12cbc to
bb9d31a
Compare
|
Force-pushed rebase on master |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
XNU has honoured MSG_NOSIGNAL on send since it adopted the POSIX.1-2008 flag, and libc defines it for Apple targets.
5a93e23 to
1134ba6
Compare
|
Force pushed rebase on master |
With apple_targets added, the freebsdlike, netbsdlike and apple_targets aliases together cover exactly the platforms in the bsd alias, so use that instead.
1134ba6 to
a16d092
Compare
|
Had to trigger a rerun to get past an apparent flaky test, that as far as I can see is not related to the changes from this PR. CI is all green now. |
XNU has honoured MSG_NOSIGNAL on send since it adopted the POSIX.1-2008 flag, and libc defines it for Apple targets.
What does this PR do
Adds MSG_NOSIGNAL as a valid bit flag on
struct MsgFlagsonapple_targets.Checklist:
CONTRIBUTING.md