Am 21.02.2013 um 20:06 schrieb Axel Rau:
> shows that there are 8 bytes returned for the fd instead of 4:
Unpacking to a long long instead an int seems to be a workaround:
patch in twext.python.sendfd.recvfd:
---
if len(packedFD) != calcsize("i"):
err_msg = str("recvfd: packedFD [%d] not %d bytes long" %
(len(packedFD),calcsize("i")))
log.error(err_msg)
if len(packedFD) == 8:
[unpackedFD] = unpack("Q", packedFD)
log.debug('recvfd:Converting packedFD to long long: %d.' %
unpackedFD,)
else:
raise ValueError(err_msg)
else:
[unpackedFD] = unpack("i", packedFD)
return (unpackedFD, data)
___
So I saw my 1st beautiful calendarserver admin page! (-:
Will try out the other servers next.
Stays the question, where in the depth of sendmsg.c or cpython is the bug on
this 64-bit platform (FreeBSD8/9)?
Axel
---
PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius
_______________________________________________
calendarserver-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/calendarserver-dev