durusmail: quixote-users: passfd.c on 64 bits system?
passfd.c on 64 bits system?
2005-11-20
Re: passfd.c on 64 bits system?
2005-12-01
passfd.c on 64 bits system?
Dryice Liu
2005-11-20
On my FreeBSD6.0-amd64 box the test_passfd.py failed. The error
message looks like:

,----
| rfd 3 wfd 4
| x
| Traceback (most recent call last):
|   File "/usr/local/lib/python2.4/site-packages/scgi/test_passfd.py", line 46,
in ?
|     fileObj = os.fdopen(fd, 'r')
| OSError: [Errno 9] Bad file descriptor
`----

I tried to add
,----
|     print fd
`----
in the script after the
,----
|     fd = passfd.recvfd(rfd)
`----
line and it prints random large numbers like 6316544.

I guess this is related to the differences of sizeof(long) on 32/64
bits machines but can't prove/fix it. Can somebody shine some light on
this? Thanks!

--
Dryice @ http://dryice.3322.org

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/sylvester-response.html
reply