[Python-Dev] sendmsg/recvmsg on Mac OS X
Charles-François Natali
neologix at free.fr
Wed Aug 24 15:31:50 CEST 2011
> The buildbots are complaining about some of tests for the new
> socket.sendmsg/recvmsg added by issue #6560 for *nix platforms that
> provide CMSG_LEN.
Looks like kernel bugs:
http://developer.apple.com/library/mac/#qa/qa1541/_index.html
"""
Yes. Mac OS X 10.5 fixes a number of kernel bugs related to descriptor passing
[...]
Avoid passing two or more descriptors back-to-back.
"""
We should probably add
@requires_mac_ver(10, 5)
for testFDPassSeparate and testFDPassSeparateMinSpace.
As for InterruptedSendTimeoutTest and testInterruptedSendmsgTimeout,
it also looks like a kernel bug: the syscall should fail with EINTR
once the socket buffer is full. I guess one should skip those on OS-X.
More information about the Python-Dev
mailing list